buildPythonPackage: use nix-update as the default update script (#435720)

This commit is contained in:
Martin Weinelt
2025-08-22 02:41:51 +02:00
committed by GitHub
2 changed files with 4 additions and 9 deletions
+2
View File
@@ -127,6 +127,8 @@
recommendation](https://clickhouse.com/docs/faq/operations/production). Users
can continue to use the `clickhouse-lts` package if desired.
- `buildPythonPackage` and `buildPythonApplication` now default to `nix-update-script` as their default `updateScript`. This should improve automated updates, since nix-update is better maintained than the in-tree update script and has more robust fetcher support.
## Nixpkgs Library {#sec-nixpkgs-release-25.11-lib}
<!-- To avoid merge conflicts, consider adding your item at an arbitrary place in the list instead. -->
@@ -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;