python3Packages.thinc: relax catalogue, plac, and srsly constraints
Also add an import check.
This commit is contained in:
parent
e2e115c03c
commit
e6b1c9b1b4
@ -58,10 +58,19 @@ buildPythonPackage rec {
|
||||
# Cannot find cython modules.
|
||||
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 = ''
|
||||
pytest thinc/tests
|
||||
'';
|
||||
|
||||
pythonImportsCheck = [ "thinc" ];
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "Practical Machine Learning for NLP in Python";
|
||||
homepage = "https://github.com/explosion/thinc";
|
||||
|
Loading…
Reference in New Issue
Block a user