buildPythonPackage: use nix-update as the default update script

Much more robust and supports various fetchers like cargo, npm or yarn.
This commit is contained in:
Martin Weinelt
2025-08-22 02:37:00 +02:00
parent d8d4964613
commit 048507355c
2 changed files with 4 additions and 9 deletions
@@ -10,7 +10,7 @@
# Whether the derivation provides a Python module or not.
toPythonModule,
namePrefix,
update-python-libraries,
nix-update-script,
setuptools,
pypaBuildHook,
pypaInstallHook,
@@ -399,14 +399,7 @@ let
inherit disabled;
}
// {
updateScript =
let
filename = head (splitString ":" finalAttrs.finalPackage.meta.position);
in
[
update-python-libraries
filename
];
updateScript = nix-update-script { };
}
// optionalAttrs (dependencies != [ ]) {
inherit dependencies;