python3Packages.thinc: fix build

This commit is contained in:
Jonathan Ringer
2021-04-20 22:19:08 -07:00
committed by Jonathan Ringer
parent 75ea2abae6
commit e24256f4c9
@@ -16,6 +16,7 @@
, pathlib , pathlib
, plac , plac
, preshed , preshed
, pydantic
, srsly , srsly
, tqdm , tqdm
, wasabi , wasabi
@@ -47,6 +48,7 @@ buildPythonPackage rec {
preshed preshed
srsly srsly
tqdm tqdm
pydantic
wasabi wasabi
] ++ lib.optional (pythonOlder "3.4") pathlib; ] ++ lib.optional (pythonOlder "3.4") pathlib;
@@ -61,11 +63,9 @@ buildPythonPackage rec {
doCheck = false; doCheck = false;
postPatch = '' postPatch = ''
substituteInPlace setup.py \ substituteInPlace setup.cfg \
--replace "blis>=0.4.0,<0.8.0" "blis>=0.4.0,<1.0" \ --replace "blis>=0.4.0,<0.8.0" "blis>=0.4.0,<1.0" \
--replace "catalogue>=0.0.7,<1.1.0" "catalogue>=0.0.7,<3.0" \ --replace "pydantic>=1.7.1,<1.8.0" "pydantic~=1.7"
--replace "plac>=0.9.6,<1.2.0" "plac>=0.9.6,<2.0" \
--replace "srsly>=0.0.6,<1.1.0" "srsly>=0.0.6,<3.0"
''; '';
checkPhase = '' checkPhase = ''