2021-06-28 23:13:55 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
2020-04-24 23:36:52 +00:00
|
|
|
, cachetools
|
|
|
|
, cytoolz
|
2021-06-28 23:13:55 +00:00
|
|
|
, fetchPypi
|
2020-04-24 23:36:52 +00:00
|
|
|
, jellyfish
|
2021-06-28 23:13:55 +00:00
|
|
|
, joblib
|
2020-04-24 23:36:52 +00:00
|
|
|
, matplotlib
|
|
|
|
, networkx
|
|
|
|
, numpy
|
|
|
|
, pyemd
|
|
|
|
, pyphen
|
2021-06-28 23:13:55 +00:00
|
|
|
, pytestCheckHook
|
|
|
|
, pythonOlder
|
2020-04-24 23:36:52 +00:00
|
|
|
, requests
|
2021-05-20 23:08:51 +00:00
|
|
|
, scikit-learn
|
2020-04-24 23:36:52 +00:00
|
|
|
, scipy
|
|
|
|
, spacy
|
2021-06-28 23:13:55 +00:00
|
|
|
, tqdm
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "textacy";
|
2022-01-13 20:06:32 +00:00
|
|
|
version = "0.12.0";
|
2021-06-28 23:13:55 +00:00
|
|
|
disabled = pythonOlder "3.7";
|
2022-02-10 20:34:41 +00:00
|
|
|
format = "pyproject";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2022-01-13 20:06:32 +00:00
|
|
|
sha256 = "2c92bdd6b47305447b64e4cb6cc43c11675f021f910a8074bc8149dbf5325e5b";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
cachetools
|
|
|
|
cytoolz
|
|
|
|
jellyfish
|
2021-06-28 23:13:55 +00:00
|
|
|
joblib
|
2020-04-24 23:36:52 +00:00
|
|
|
matplotlib
|
|
|
|
networkx
|
|
|
|
numpy
|
|
|
|
pyemd
|
|
|
|
pyphen
|
|
|
|
requests
|
2021-05-20 23:08:51 +00:00
|
|
|
scikit-learn
|
2020-04-24 23:36:52 +00:00
|
|
|
scipy
|
|
|
|
spacy
|
2021-06-28 23:13:55 +00:00
|
|
|
tqdm
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
2021-06-28 23:13:55 +00: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" ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Higher-level text processing, built on spaCy";
|
|
|
|
homepage = "https://textacy.readthedocs.io/";
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ rvl ];
|
|
|
|
};
|
|
|
|
}
|