3
0
Fork 0
forked from mirrors/nixpkgs

python39Packages.spacy: 3.2.4 -> 3.3.0

This commit is contained in:
Fabian Affolter 2022-05-01 00:31:50 +02:00
parent e3f55d56f5
commit 0e42a3ad35

View file

@ -1,43 +1,44 @@
{ lib
, blis
, buildPythonPackage
, callPackage
, fetchPypi
, pythonOlder
, pytest
, blis
, catalogue
, cymem
, fetchPypi
, jinja2
, jsonschema
, langcodes
, murmurhash
, numpy
, preshed
, requests
, setuptools
, srsly
, spacy-legacy
, thinc
, typer
, wasabi
, packaging
, pathy
, preshed
, pydantic
, pytest
, python
, tqdm
, typing-extensions
, pythonOlder
, requests
, setuptools
, spacy-legacy
, spacy-loggers
, langcodes
, srsly
, thinc
, tqdm
, typer
, typing-extensions
, 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; [ ];