nixos/tests/acme: Use overridePythonAttrs
Quoting from @FRidh:
Note overridePythonAttrs exists since 17.09. It overrides the call to
buildPythonPackage.
While it's not strictly necessary to do this, because postPatch ends up
in drvAttrs anyway, it's probably better to use overridePythonAttrs so
we don't run into problems when the underlying implementation of
buildPythonPackage changes.
Signed-off-by: aszlig <aszlig@redmoonstudios.org>
commitb5fbb4f3622bc6edabe59402aeb9cd4a40cf08f3
authoraszlig <aszlig@redmoonstudios.org>
dateThu 14 Sep 2017, 23:18 (9 years ago)
parentd1260ea
nixos/tests/acme.nix+2−2
@@ -14,8 +14,8 @@ let
1414
1515 pythonPackages = (super.python.override {
1616 packageOverrides = lib.const (pysuper: {
17− certifi = pysuper.certifi.overrideDerivation (drv: {
18− postPatch = (drv.postPatch or "") + ''
17+ certifi = pysuper.certifi.overridePythonAttrs (attrs: {
18+ postPatch = (attrs.postPatch or "") + ''
1919 cat "${self.cacert}/etc/ssl/certs/ca-bundle.crt" \
2020 > certifi/cacert.pem
2121 '';