python3Packages.buildPythonPackage: make passthru.{dependencies,build-system} overridable

This commit is contained in:
Yueh-Shun Li
2025-09-29 01:55:06 +08:00
parent 67d2a84468
commit 42ba377ba8
@@ -371,13 +371,13 @@ let
pythonOutputDistHook
]
++ nativeBuildInputs
++ build-system;
++ getFinalPassthru "build-system";
buildInputs = validatePythonMatches "buildInputs" (buildInputs ++ pythonPath);
propagatedBuildInputs = validatePythonMatches "propagatedBuildInputs" (
propagatedBuildInputs
++ dependencies
++ getFinalPassthru "dependencies"
++ [
# we propagate python even for packages transformed with 'toPythonApplication'
# this pollutes the PATH but avoids rebuilds