python3Packages.buildPythonPackage: Don't copy input list when checking inputs

This commit is contained in:
adisbladis
2026-05-12 16:36:13 +12:00
parent 8abecec2ab
commit 54bea898fa
@@ -48,6 +48,8 @@ let
optionalString
removePrefix
stringLength
all
seq
;
leftPadName =
@@ -263,10 +265,10 @@ lib.extendMkDerivation {
checkDrv =
attrName: drv:
if (isPythonModule drv) && (isMismatchedPython drv) then throwMismatch attrName drv else drv;
if isPythonModule drv && isMismatchedPython drv then throwMismatch attrName drv else true;
in
attrName: map (checkDrv attrName);
attrName: inputs: seq (all (checkDrv attrName) inputs) inputs;
isBootstrapInstallPackage = isBootstrapInstallPackage' (finalAttrs.pname or null);