2018-04-07 14:48:02 +00:00
|
|
|
{ lib
|
2017-05-15 10:09:39 +00:00
|
|
|
, buildPythonPackage
|
2020-08-18 17:38:43 +00:00
|
|
|
, callPackage
|
2017-05-15 10:09:39 +00:00
|
|
|
, fetchPypi
|
2018-04-07 14:48:02 +00:00
|
|
|
, pythonOlder
|
2017-11-09 11:26:09 +00:00
|
|
|
, pytest
|
2020-03-13 14:40:50 +00:00
|
|
|
, blis
|
|
|
|
, catalogue
|
|
|
|
, cymem
|
2021-05-07 21:32:50 +00:00
|
|
|
, jinja2
|
2020-03-13 14:40:50 +00:00
|
|
|
, jsonschema
|
2017-05-15 10:09:39 +00:00
|
|
|
, murmurhash
|
2020-03-13 14:40:50 +00:00
|
|
|
, numpy
|
|
|
|
, preshed
|
2017-05-15 10:09:39 +00:00
|
|
|
, requests
|
2020-03-13 14:40:50 +00:00
|
|
|
, setuptools
|
|
|
|
, srsly
|
2021-05-07 21:04:10 +00:00
|
|
|
, spacy-legacy
|
2017-05-15 10:09:39 +00:00
|
|
|
, thinc
|
2021-05-18 07:38:46 +00:00
|
|
|
, typer
|
2019-05-11 13:31:31 +00:00
|
|
|
, wasabi
|
2021-05-07 21:32:50 +00:00
|
|
|
, packaging
|
|
|
|
, pathy
|
|
|
|
, pydantic
|
2021-10-05 15:03:19 +00:00
|
|
|
, python
|
|
|
|
, tqdm
|
|
|
|
, typing-extensions
|
2022-01-06 21:49:25 +00:00
|
|
|
, spacy-loggers
|
|
|
|
, langcodes
|
2017-05-15 10:09:39 +00:00
|
|
|
}:
|
|
|
|
|
2018-01-01 10:56:00 +00:00
|
|
|
buildPythonPackage rec {
|
2017-11-09 11:26:09 +00:00
|
|
|
pname = "spacy";
|
2022-03-30 23:05:17 +00:00
|
|
|
version = "3.2.4";
|
2021-10-05 15:03:19 +00:00
|
|
|
|
|
|
|
disabled = pythonOlder "3.6";
|
2017-05-15 10:09:39 +00:00
|
|
|
|
2018-03-13 23:02:00 +00:00
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2022-03-30 23:05:17 +00:00
|
|
|
sha256 = "sha256-PkxvKY1UBEWC2soRQrCC7jiDG7PXu5MdLuYB6Ljc5k8=";
|
2017-11-09 11:26:09 +00:00
|
|
|
};
|
2017-05-15 10:09:39 +00:00
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
2020-12-12 10:37:25 +00:00
|
|
|
blis
|
|
|
|
catalogue
|
|
|
|
cymem
|
2021-05-07 21:32:50 +00:00
|
|
|
jinja2
|
2020-12-12 10:37:25 +00:00
|
|
|
jsonschema
|
|
|
|
murmurhash
|
|
|
|
numpy
|
2021-10-05 15:03:19 +00:00
|
|
|
packaging
|
|
|
|
pathy
|
2020-12-12 10:37:25 +00:00
|
|
|
preshed
|
2021-10-05 15:03:19 +00:00
|
|
|
pydantic
|
2020-12-12 10:37:25 +00:00
|
|
|
requests
|
|
|
|
setuptools
|
|
|
|
srsly
|
2021-05-07 21:04:10 +00:00
|
|
|
spacy-legacy
|
2020-12-12 10:37:25 +00:00
|
|
|
thinc
|
2021-10-05 15:03:19 +00:00
|
|
|
tqdm
|
2021-05-18 07:38:46 +00:00
|
|
|
typer
|
2021-10-05 15:03:19 +00:00
|
|
|
wasabi
|
2022-01-06 21:49:25 +00:00
|
|
|
spacy-loggers
|
|
|
|
langcodes
|
2021-10-05 15:03:19 +00:00
|
|
|
] ++ lib.optional (pythonOlder "3.8") typing-extensions;
|
2018-03-13 23:02:00 +00:00
|
|
|
|
2022-02-10 18:20:57 +00:00
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace setup.cfg \
|
|
|
|
--replace "pydantic>=1.7.4,!=1.8,!=1.8.1,<1.9.0" "pydantic~=1.2"
|
|
|
|
'';
|
|
|
|
|
2018-03-13 23:02:00 +00:00
|
|
|
checkInputs = [
|
|
|
|
pytest
|
2017-05-15 10:09:39 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
doCheck = false;
|
2021-10-05 15:03:19 +00:00
|
|
|
checkPhase = ''
|
|
|
|
${python.interpreter} -m pytest spacy/tests --vectors --models --slow
|
2020-05-27 13:33:24 +00:00
|
|
|
'';
|
|
|
|
|
2020-06-20 09:26:36 +00:00
|
|
|
pythonImportsCheck = [ "spacy" ];
|
|
|
|
|
2020-12-12 10:38:39 +00:00
|
|
|
passthru.tests.annotation = callPackage ./annotation-test { };
|
2020-08-18 17:38:43 +00:00
|
|
|
|
2018-04-07 14:48:02 +00:00
|
|
|
meta = with lib; {
|
2017-05-15 10:09:39 +00:00
|
|
|
description = "Industrial-strength Natural Language Processing (NLP) with Python and Cython";
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://github.com/explosion/spaCy";
|
2017-05-15 10:09:39 +00:00
|
|
|
license = licenses.mit;
|
2021-09-18 09:22:27 +00:00
|
|
|
maintainers = with maintainers; [ ];
|
2020-06-16 15:26:11 +00:00
|
|
|
};
|
2017-05-15 10:09:39 +00:00
|
|
|
}
|