python3Packages.thinc: relax catalogue, plac, and srsly constraints

Also add an import check.
This commit is contained in:
Daniël de Kok 2020-06-20 11:09:18 +02:00
parent e2e115c03c
commit e6b1c9b1b4

View File

@ -58,10 +58,19 @@ buildPythonPackage rec {
# Cannot find cython modules. # Cannot find cython modules.
doCheck = false; doCheck = false;
postPatch = ''
substituteInPlace setup.py \
--replace "catalogue>=0.0.7,<1.1.0" "catalogue>=0.0.7,<3.0" \
--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 = ''
pytest thinc/tests pytest thinc/tests
''; '';
pythonImportsCheck = [ "thinc" ];
meta = with stdenv.lib; { meta = with stdenv.lib; {
description = "Practical Machine Learning for NLP in Python"; description = "Practical Machine Learning for NLP in Python";
homepage = "https://github.com/explosion/thinc"; homepage = "https://github.com/explosion/thinc";