Use python3.withPackages to pull in pytest
Using the other method leaks into PYTHONPATH.
This commit is contained in:
parent
fc1ef1e4cb
commit
b92dfbba57
|
@ -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
|
||||||
|
]))
|
||||||
];
|
];
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue