Merge pull request #322769 from mweinelt/update-python-libraries/identify-git-fetcher

update-python-libraries: Reliably detect nix-prefetch-git
This commit is contained in:
Martin Weinelt 2024-06-27 22:18:25 +02:00 committed by GitHub
commit 62ad96a239
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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",