···11 {
12 poetry = self.callPackage ./unwrapped.nix { };
1300000000000014 # The versions of Poetry and poetry-core need to match exactly,
15 # and poetry-core in nixpkgs requires a staging cycle to be updated,
16 # so apply an override here.
···11 {
12 poetry = self.callPackage ./unwrapped.nix { };
1314+ # Poetry 2.1.4 officially requires virtualenv >=20.26.6, <20.33.0
15+ # otherwise will be incompatible with python312
16+ # see: https://github.com/python-poetry/poetry/issues/10490
17+ virtualenv = super.virtualenv.overridePythonAttrs (old: rec {
18+ version = "20.30.0";
19+ src = fetchPypi {
20+ inherit (old) pname;
21+ inherit version;
22+ hash = "sha256-gAhjFivKpUUKbk1yEElzDn8trgdyDgkCsOQEC9b5rag=";
23+ };
24+ });
25+26 # The versions of Poetry and poetry-core need to match exactly,
27 # and poetry-core in nixpkgs requires a staging cycle to be updated,
28 # so apply an override here.