diff --git a/pkgs/development/python-modules/poetry/default.nix b/pkgs/development/python-modules/poetry/default.nix index 44621d353830..2828cb6b3f97 100644 --- a/pkgs/development/python-modules/poetry/default.nix +++ b/pkgs/development/python-modules/poetry/default.nix @@ -32,6 +32,7 @@ let in buildPythonPackage rec { pname = "poetry"; version = "1.0.3"; + format = "pyproject"; src = fetchPypi { inherit pname version; @@ -42,12 +43,10 @@ in buildPythonPackage rec { substituteInPlace pyproject.toml \ --replace "pyrsistent = \"^0.14.2\"" "pyrsistent = \"^0.15.0\"" \ --replace "requests-toolbelt = \"^0.8.0\"" "requests-toolbelt = \"^0.9.0\"" \ - --replace "importlib-metadata = {version = \"~1.1.3\", python = \"<3.8\"}" \ - "importlib-metadata = {version = \"~1.3.0\", python = \"<3.8\"}" + --replace 'importlib-metadata = {version = "~1.1.3", python = "<3.8"}' \ + 'importlib-metadata = {version = ">=1.3,<2", python = "<3.8"}' ''; - format = "pyproject"; - nativeBuildInputs = [ intreehooks ]; propagatedBuildInputs = [