2021-06-07 00:22:06 +01:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
2017-09-13 01:01:01 +01:00
|
|
|
, cachetools
|
|
|
|
, cytoolz
|
2021-06-07 00:22:06 +01:00
|
|
|
, fetchPypi
|
2019-09-04 09:28:05 +01:00
|
|
|
, jellyfish
|
2021-06-07 00:22:06 +01:00
|
|
|
, joblib
|
2017-09-13 01:01:01 +01:00
|
|
|
, matplotlib
|
|
|
|
, networkx
|
|
|
|
, numpy
|
|
|
|
, pyemd
|
|
|
|
, pyphen
|
2021-06-07 00:22:06 +01:00
|
|
|
, pytestCheckHook
|
|
|
|
, pythonOlder
|
2017-09-13 01:01:01 +01:00
|
|
|
, requests
|
2021-05-14 19:46:36 +01:00
|
|
|
, scikit-learn
|
2017-09-13 01:01:01 +01:00
|
|
|
, scipy
|
|
|
|
, spacy
|
2021-06-07 00:22:06 +01:00
|
|
|
, tqdm
|
2017-09-13 01:01:01 +01:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "textacy";
|
2021-06-07 00:22:06 +01:00
|
|
|
version = "0.11.0";
|
|
|
|
disabled = pythonOlder "3.7";
|
2017-09-13 01:01:01 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-06-07 00:22:06 +01:00
|
|
|
sha256 = "sha256-d/tyTCewoERA15iBv4H2LORFzgco15fnnN1sneeGuF4=";
|
2017-09-13 01:01:01 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
cachetools
|
|
|
|
cytoolz
|
2019-09-04 09:28:05 +01:00
|
|
|
jellyfish
|
2021-06-07 00:22:06 +01:00
|
|
|
joblib
|
2017-09-13 01:01:01 +01:00
|
|
|
matplotlib
|
|
|
|
networkx
|
|
|
|
numpy
|
|
|
|
pyemd
|
|
|
|
pyphen
|
|
|
|
requests
|
2021-05-14 19:46:36 +01:00
|
|
|
scikit-learn
|
2017-09-13 01:01:01 +01:00
|
|
|
scipy
|
|
|
|
spacy
|
2021-06-07 00:22:06 +01:00
|
|
|
tqdm
|
2017-09-13 01:01:01 +01:00
|
|
|
];
|
|
|
|
|
2021-06-07 00:22:06 +01:00
|
|
|
checkInputs = [
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
|
|
|
pytestFlagsArray = [
|
|
|
|
# Almost all tests have to deal with downloading a dataset, only test pure tests
|
|
|
|
"tests/test_constants.py"
|
|
|
|
"tests/preprocessing/test_normalize.py"
|
|
|
|
"tests/similarity/test_edits.py"
|
|
|
|
"tests/preprocessing/test_resources.py"
|
|
|
|
"tests/preprocessing/test_replace.py"
|
|
|
|
];
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "textacy" ];
|
2019-01-28 20:20:41 +00:00
|
|
|
|
2019-09-04 09:28:05 +01:00
|
|
|
meta = with lib; {
|
2017-09-13 01:01:01 +01:00
|
|
|
description = "Higher-level text processing, built on spaCy";
|
2020-01-22 10:26:22 +00:00
|
|
|
homepage = "https://textacy.readthedocs.io/";
|
2017-09-13 01:01:01 +01:00
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ rvl ];
|
|
|
|
};
|
|
|
|
}
|