buildPython*: run runtime dependency check hook for wheels (#480159)

This commit is contained in:
Martin Weinelt
2026-01-19 18:20:44 +00:00
committed by GitHub

View File

@@ -283,6 +283,14 @@ lib.extendMkDerivation {
name = namePrefix + attrs.name or "${finalAttrs.pname}-${finalAttrs.version}";
runtimeDepsCheckHook =
if isBootstrapPackage then
pythonRuntimeDepsCheckHook.override {
inherit (python.pythonOnBuildForHost.pkgs.bootstrap) packaging;
}
else
pythonRuntimeDepsCheckHook;
in
{
inherit name;
@@ -330,17 +338,11 @@ lib.extendMkDerivation {
else
pypaBuildHook
)
(
if isBootstrapPackage then
pythonRuntimeDepsCheckHook.override {
inherit (python.pythonOnBuildForHost.pkgs.bootstrap) packaging;
}
else
pythonRuntimeDepsCheckHook
)
runtimeDepsCheckHook
]
++ optionals (format' == "wheel") [
wheelUnpackHook
runtimeDepsCheckHook
]
++ optionals (format' == "egg") [
eggUnpackHook