Unverified Commit 04850735 authored by Martin Weinelt's avatar Martin Weinelt
Browse files

buildPythonPackage: use nix-update as the default update script

Much more robust and supports various fetchers like cargo, npm or yarn.
parent d8d49646
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -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. -->
+2 −9
Original line number Diff line number Diff line
@@ -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;