julia.withPackages: better error message on missing nix-sha256 hash

Changed files
+5 -1
pkgs
development
julia-modules
+5 -1
pkgs/development/julia-modules/python/sources_nix.py
··· 45 45 path = registry_info["path"] 46 46 packageToml = toml.load(registry_path / path / "Package.toml") 47 47 48 - all_versions = toml.load(registry_path / path / "Versions.toml") 48 + versions_toml = registry_path / path / "Versions.toml" 49 + all_versions = toml.load(versions_toml) 49 50 if not pkg["version"] in all_versions: continue 50 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"}?""") 51 55 52 56 repo = packageToml["repo"] 53 57 f.write(f""" "{uuid}" = {{