From 27aa2c8a9d8327d50e28ab858e01015e9c48bc32 Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Thu, 27 Jun 2024 01:10:21 +0200 Subject: [PATCH] update-python-libraries: Reliably detect nix-prefetch-git Makes sure that any attribute that triggers using fetchGit will result in the updater using nix-prefetch-git. --- .../python/update-python-libraries/update-python-libraries.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/development/interpreters/python/update-python-libraries/update-python-libraries.py b/pkgs/development/interpreters/python/update-python-libraries/update-python-libraries.py index 3430c5806c4a..fbc096502fa7 100755 --- a/pkgs/development/interpreters/python/update-python-libraries/update-python-libraries.py +++ b/pkgs/development/interpreters/python/update-python-libraries/update-python-libraries.py @@ -284,7 +284,7 @@ def _get_latest_version_github(attr_path, package, extension, current_version, t if _get_attr_value(f"{attr_path}.src.leaveDotGit"): git_fetcher_args.append("--leave-dotGit") - if git_fetcher_args: + if git_fetcher_args or _get_attr_value(f"{attr_path}.src.fetcher").endswith("nix-prefetch-git"): algorithm = "sha256" cmd = [ "nix-prefetch-git",