From 01fffd94e5848e55fab88cd85a6ac958e1a309ff Mon Sep 17 00:00:00 2001 From: aszlig Date: Wed, 13 Sep 2017 23:06:39 +0200 Subject: nixos/tests/acme: Patch certifi with cacert Since 67651d80bc8baaf09ab91fec8ea423e09107ed8f the requests package now depends on certifi, which in turn provides the CA root certificates that we need to replace. It might also be a good idea to actually patch certifi with our version of cacert by default so that if we want to override and/or add something we only need to do it once. Signed-off-by: aszlig Cc: @fpletz, @k0ral, @FRidh --- nixos/tests/acme.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'nixos/tests/acme.nix') diff --git a/nixos/tests/acme.nix b/nixos/tests/acme.nix index a48f4d75ae3..f44524a1d6a 100644 --- a/nixos/tests/acme.nix +++ b/nixos/tests/acme.nix @@ -14,10 +14,10 @@ let pythonPackages = (super.python.override { packageOverrides = lib.const (pysuper: { - requests = pysuper.requests.overrideDerivation (drv: { + certifi = pysuper.certifi.overrideDerivation (drv: { postPatch = (drv.postPatch or "") + '' cat "${self.cacert}/etc/ssl/certs/ca-bundle.crt" \ - > requests/cacert.pem + > certifi/cacert.pem ''; }); }); -- cgit 1.4.1