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 <aszlig@redmoonstudios.org>
Cc: @fpletz, @k0ral, @FRidh
commit01fffd94e5848e55fab88cd85a6ac958e1a309ff
authoraszlig <aszlig@redmoonstudios.org>
dateWed 13 Sep 2017, 23:06 (9 years ago)
parentbda3831
nixos/tests/acme.nix+2−2
@@ -14,10 +14,10 @@ let
1414
1515 pythonPackages = (super.python.override {
1616 packageOverrides = lib.const (pysuper: {
17− requests = pysuper.requests.overrideDerivation (drv: {
17+ certifi = pysuper.certifi.overrideDerivation (drv: {
1818 postPatch = (drv.postPatch or "") + ''
1919 cat "${self.cacert}/etc/ssl/certs/ca-bundle.crt" \
20− > requests/cacert.pem
20+ > certifi/cacert.pem
2121 '';
2222 });
2323 });