diff --git a/pkgs/development/interpreters/python/mk-python-derivation.nix b/pkgs/development/interpreters/python/mk-python-derivation.nix index 6746e4b1ec63..7155137b1f2f 100644 --- a/pkgs/development/interpreters/python/mk-python-derivation.nix +++ b/pkgs/development/interpreters/python/mk-python-derivation.nix @@ -373,16 +373,16 @@ lib.extendMkDerivation { buildInputs = validatePythonMatches "buildInputs" (buildInputs ++ pythonPath); - propagatedBuildInputs = validatePythonMatches "propagatedBuildInputs" ( - propagatedBuildInputs - ++ getFinalPassthru "dependencies" + propagatedBuildInputs = + validatePythonMatches "propagatedBuildInputs" ( + propagatedBuildInputs ++ getFinalPassthru "dependencies" + ) ++ [ # we propagate python even for packages transformed with 'toPythonApplication' # this pollutes the PATH but avoids rebuilds # see https://github.com/NixOS/nixpkgs/issues/170887 for more context python - ] - ); + ]; inherit strictDeps;