forked from mirrors/nixpkgs
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>
This commit is contained in:
parent
d1260ea6aa
commit
b5fbb4f362
|
@ -14,8 +14,8 @@ let
|
|||
|
||||
pythonPackages = (super.python.override {
|
||||
packageOverrides = lib.const (pysuper: {
|
||||
certifi = pysuper.certifi.overrideDerivation (drv: {
|
||||
postPatch = (drv.postPatch or "") + ''
|
||||
certifi = pysuper.certifi.overridePythonAttrs (attrs: {
|
||||
postPatch = (attrs.postPatch or "") + ''
|
||||
cat "${self.cacert}/etc/ssl/certs/ca-bundle.crt" \
|
||||
> certifi/cacert.pem
|
||||
'';
|
||||
|
|
Loading…
Reference in a new issue