From b92dfbba572ca433276fc9319fb1319111cc5ae3 Mon Sep 17 00:00:00 2001 From: adisbladis Date: Mon, 23 Aug 2021 12:20:16 -0500 Subject: [PATCH] Use python3.withPackages to pull in pytest Using the other method leaks into PYTHONPATH. --- flake.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/flake.nix b/flake.nix index 998772d..bf87bd6 100644 --- a/flake.nix +++ b/flake.nix @@ -16,7 +16,9 @@ defaultPackage = self.packages.${system}.hydra-eval-jobs; devShell = defaultPackage.overrideAttrs (old: { nativeBuildInputs = old.nativeBuildInputs ++ [ - pkgs.python3.pkgs.pytest + (pkgs.python3.withPackages(ps: [ + ps.pytest + ])) ]; }); });