Skip to content

Commit

Permalink
python3.pkgs.pythonRuntimeDepsCheckHook: allow prereleases
Browse files Browse the repository at this point in the history
Updating to prereleases should be possible, but making this an option is
difficult, given that for packages with many consumers you would have to
set it in each consumer.

We thoroughly test the package set, so allowing prereleases unconditionally
shouldn't be too bad.

Closes: NixOS#301698
  • Loading branch information
mweinelt committed Oct 28, 2024
1 parent 65093e7 commit a931ae0
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,9 @@ def test_requirement(requirement: Requirement) -> bool:
error(f"{package_name} not installed")
return False

# Allow prereleases, to give to give us some wiggle-room
requirement.specifier.prereleases = True

if requirement.specifier and package.version not in requirement.specifier:
error(
f"{package_name}{requirement.specifier} not satisfied by version {package.version}"
Expand Down

0 comments on commit a931ae0

Please sign in to comment.