python37Packages.poetry: fix build

This commit is contained in:
Jonathan Ringer 2020-03-02 10:12:04 -08:00 committed by Jon
parent 76079f270c
commit 725dc741c1

View File

@ -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 = [