python3Packages.spacy: relax catalogue, plac, and srsly versions
Also add an import check.
This commit is contained in:
parent
e6b1c9b1b4
commit
916330f28e
@ -54,9 +54,15 @@ buildPythonPackage rec {
|
||||
# '';
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace setup.cfg --replace "thinc==7.4.1" "thinc>=7.4.1,<8"
|
||||
substituteInPlace setup.cfg \
|
||||
--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>=1.0.2,<1.1.0" "srsly>=1.0.2,<3.0" \
|
||||
--replace "thinc==7.4.1" "thinc>=7.4.1,<8"
|
||||
'';
|
||||
|
||||
pythonImportsCheck = [ "spacy" ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Industrial-strength Natural Language Processing (NLP) with Python and Cython";
|
||||
homepage = "https://github.com/explosion/spaCy";
|
||||
|
Loading…
Reference in New Issue
Block a user