|
|
|
@ -1,43 +1,44 @@ |
|
|
|
|
{ lib |
|
|
|
|
, blis |
|
|
|
|
, buildPythonPackage |
|
|
|
|
, callPackage |
|
|
|
|
, fetchPypi |
|
|
|
|
, pythonOlder |
|
|
|
|
, pytest |
|
|
|
|
, blis |
|
|
|
|
, catalogue |
|
|
|
|
, cymem |
|
|
|
|
, fetchPypi |
|
|
|
|
, jinja2 |
|
|
|
|
, jsonschema |
|
|
|
|
, langcodes |
|
|
|
|
, murmurhash |
|
|
|
|
, numpy |
|
|
|
|
, packaging |
|
|
|
|
, pathy |
|
|
|
|
, preshed |
|
|
|
|
, pydantic |
|
|
|
|
, pytest |
|
|
|
|
, python |
|
|
|
|
, pythonOlder |
|
|
|
|
, requests |
|
|
|
|
, setuptools |
|
|
|
|
, srsly |
|
|
|
|
, spacy-legacy |
|
|
|
|
, spacy-loggers |
|
|
|
|
, srsly |
|
|
|
|
, thinc |
|
|
|
|
, typer |
|
|
|
|
, wasabi |
|
|
|
|
, packaging |
|
|
|
|
, pathy |
|
|
|
|
, pydantic |
|
|
|
|
, python |
|
|
|
|
, tqdm |
|
|
|
|
, typer |
|
|
|
|
, typing-extensions |
|
|
|
|
, spacy-loggers |
|
|
|
|
, langcodes |
|
|
|
|
, wasabi |
|
|
|
|
}: |
|
|
|
|
|
|
|
|
|
buildPythonPackage rec { |
|
|
|
|
pname = "spacy"; |
|
|
|
|
version = "3.2.4"; |
|
|
|
|
version = "3.3.0"; |
|
|
|
|
format = "setuptools"; |
|
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.6"; |
|
|
|
|
|
|
|
|
|
src = fetchPypi { |
|
|
|
|
inherit pname version; |
|
|
|
|
sha256 = "sha256-PkxvKY1UBEWC2soRQrCC7jiDG7PXu5MdLuYB6Ljc5k8="; |
|
|
|
|
hash = "sha256-xJ1Q++NxWtxXQUGTZ7OaRo0lVmSEIvELb8Tt846uLLM="; |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ |
|
|
|
@ -46,6 +47,7 @@ buildPythonPackage rec { |
|
|
|
|
cymem |
|
|
|
|
jinja2 |
|
|
|
|
jsonschema |
|
|
|
|
langcodes |
|
|
|
|
murmurhash |
|
|
|
|
numpy |
|
|
|
|
packaging |
|
|
|
@ -54,15 +56,16 @@ buildPythonPackage rec { |
|
|
|
|
pydantic |
|
|
|
|
requests |
|
|
|
|
setuptools |
|
|
|
|
srsly |
|
|
|
|
spacy-legacy |
|
|
|
|
spacy-loggers |
|
|
|
|
srsly |
|
|
|
|
thinc |
|
|
|
|
tqdm |
|
|
|
|
typer |
|
|
|
|
wasabi |
|
|
|
|
spacy-loggers |
|
|
|
|
langcodes |
|
|
|
|
] ++ lib.optional (pythonOlder "3.8") typing-extensions; |
|
|
|
|
] ++ lib.optional (pythonOlder "3.8") [ |
|
|
|
|
typing-extensions |
|
|
|
|
]; |
|
|
|
|
|
|
|
|
|
postPatch = '' |
|
|
|
|
substituteInPlace setup.cfg \ |
|
|
|
@ -78,12 +81,14 @@ buildPythonPackage rec { |
|
|
|
|
${python.interpreter} -m pytest spacy/tests --vectors --models --slow |
|
|
|
|
''; |
|
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "spacy" ]; |
|
|
|
|
pythonImportsCheck = [ |
|
|
|
|
"spacy" |
|
|
|
|
]; |
|
|
|
|
|
|
|
|
|
passthru.tests.annotation = callPackage ./annotation-test { }; |
|
|
|
|
|
|
|
|
|
meta = with lib; { |
|
|
|
|
description = "Industrial-strength Natural Language Processing (NLP) with Python and Cython"; |
|
|
|
|
description = "Industrial-strength Natural Language Processing (NLP)"; |
|
|
|
|
homepage = "https://github.com/explosion/spaCy"; |
|
|
|
|
license = licenses.mit; |
|
|
|
|
maintainers = with maintainers; [ ]; |
|
|
|
|