python3Packages.spacy: relax catalogue, plac, and srsly versions

Also add an import check.
This commit is contained in:
Daniël de Kok 2020-06-20 11:26:36 +02:00
parent e6b1c9b1b4
commit 916330f28e

View file

@ -54,9 +54,15 @@ buildPythonPackage rec {
# ''; # '';
postPatch = '' 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; { meta = with lib; {
description = "Industrial-strength Natural Language Processing (NLP) with Python and Cython"; description = "Industrial-strength Natural Language Processing (NLP) with Python and Cython";
homepage = "https://github.com/explosion/spaCy"; homepage = "https://github.com/explosion/spaCy";