+5
-1
pkgs/development/julia-modules/python/sources_nix.py
+5
-1
pkgs/development/julia-modules/python/sources_nix.py
···
45
path = registry_info["path"]
46
packageToml = toml.load(registry_path / path / "Package.toml")
47
48
-
all_versions = toml.load(registry_path / path / "Versions.toml")
49
if not pkg["version"] in all_versions: continue
50
version_to_use = all_versions[pkg["version"]]
51
52
repo = packageToml["repo"]
53
f.write(f""" "{uuid}" = {{
···
45
path = registry_info["path"]
46
packageToml = toml.load(registry_path / path / "Package.toml")
47
48
+
versions_toml = registry_path / path / "Versions.toml"
49
+
all_versions = toml.load(versions_toml)
50
if not pkg["version"] in all_versions: continue
51
version_to_use = all_versions[pkg["version"]]
52
+
53
+
if not "nix-sha256" in version_to_use:
54
+
raise KeyError(f"""Couldn't find nix-sha256 hash for {pkg["name"]} {pkg["version"]} in {versions_toml}. This might indicate that we failed to prefetch the hash when computing the augmented registry. Was there a relevant failure in {registry_path / "failures.yml"}?""")
55
56
repo = packageToml["repo"]
57
f.write(f""" "{uuid}" = {{