update-python-libraries: don't update packages with cargoDeps

This is unsupported and breaks packages on update.
This commit is contained in:
Martin Weinelt
2023-12-02 03:22:01 +01:00
parent 9657d65093
commit 929da50216
@@ -393,6 +393,8 @@ def _update_package(path, target):
for pname in pnames:
if BULK_UPDATE and _skip_bulk_update(f"python3Packages.{pname}"):
raise ValueError(f"Bulk update skipped for {pname}")
elif _get_attr_value(f"python3Packages.{pname}.cargoDeps") is not None:
raise ValueError(f"Cargo dependencies are unsupported, skipping {pname}")
try:
new_version, new_sha256, prefix = FETCHERS[fetcher](pname, extension, version, target)
successful_fetch = True