diff --git a/pkgs/development/interpreters/python/hooks/python-runtime-deps-check-hook.py b/pkgs/development/interpreters/python/hooks/python-runtime-deps-check-hook.py index 36ce389de50f8..e620a17a5d7b7 100644 --- a/pkgs/development/interpreters/python/hooks/python-runtime-deps-check-hook.py +++ b/pkgs/development/interpreters/python/hooks/python-runtime-deps-check-hook.py @@ -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}"