poetry: pin virtualenv to 20.30.0 (#439521)

This commit is contained in:
dotlambda
2025-09-02 19:36:57 -07:00
committed by GitHub
2 changed files with 12 additions and 1 deletions
+12
View File
@@ -11,6 +11,18 @@ let
{
poetry = self.callPackage ./unwrapped.nix { };
# Poetry 2.1.4 officially requires virtualenv >=20.26.6, <20.33.0
# otherwise will be incompatible with python312
# see: https://github.com/python-poetry/poetry/issues/10490
virtualenv = super.virtualenv.overridePythonAttrs (old: rec {
version = "20.30.0";
src = fetchPypi {
inherit (old) pname;
inherit version;
hash = "sha256-gAhjFivKpUUKbk1yEElzDn8trgdyDgkCsOQEC9b5rag=";
};
});
# The versions of Poetry and poetry-core need to match exactly,
# and poetry-core in nixpkgs requires a staging cycle to be updated,
# so apply an override here.
-1
View File
@@ -60,7 +60,6 @@ buildPythonPackage rec {
pythonRelaxDeps = [
"dulwich"
"keyring"
"virtualenv"
];
dependencies = [