Unverified Commit 8d11030e authored by dotlambda's avatar dotlambda Committed by GitHub
Browse files

poetry: pin virtualenv to 20.30.0 (#439521)

parents ced1025b 7603691b
Loading
Loading
Loading
Loading
+12 −0
Original line number Diff line number Diff line
@@ -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.
+0 −1
Original line number Diff line number Diff line
@@ -60,7 +60,6 @@ buildPythonPackage rec {
  pythonRelaxDeps = [
    "dulwich"
    "keyring"
    "virtualenv"
  ];

  dependencies = [