Use python3.withPackages to pull in pytest

Using the other method leaks into PYTHONPATH.
This commit is contained in:
adisbladis 2021-08-23 12:20:16 -05:00
parent fc1ef1e4cb
commit b92dfbba57
No known key found for this signature in database
GPG key ID: 110BFAD44C6249B7

View file

@ -16,7 +16,9 @@
defaultPackage = self.packages.${system}.hydra-eval-jobs; defaultPackage = self.packages.${system}.hydra-eval-jobs;
devShell = defaultPackage.overrideAttrs (old: { devShell = defaultPackage.overrideAttrs (old: {
nativeBuildInputs = old.nativeBuildInputs ++ [ nativeBuildInputs = old.nativeBuildInputs ++ [
pkgs.python3.pkgs.pytest (pkgs.python3.withPackages(ps: [
ps.pytest
]))
]; ];
}); });
}); });