diff --git a/doc/release-notes/rl-2511.section.md b/doc/release-notes/rl-2511.section.md index 885948c0ea3a..01fa21d1f229 100644 --- a/doc/release-notes/rl-2511.section.md +++ b/doc/release-notes/rl-2511.section.md @@ -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} diff --git a/pkgs/development/interpreters/python/mk-python-derivation.nix b/pkgs/development/interpreters/python/mk-python-derivation.nix index 9d392bfcb95a..e634df7a1e96 100644 --- a/pkgs/development/interpreters/python/mk-python-derivation.nix +++ b/pkgs/development/interpreters/python/mk-python-derivation.nix @@ -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;