2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
cachetools,
|
|
|
|
cytoolz,
|
|
|
|
fetchPypi,
|
|
|
|
floret,
|
|
|
|
jellyfish,
|
|
|
|
joblib,
|
|
|
|
matplotlib,
|
|
|
|
networkx,
|
|
|
|
numpy,
|
|
|
|
pyemd,
|
|
|
|
pyphen,
|
|
|
|
pytestCheckHook,
|
|
|
|
pythonOlder,
|
|
|
|
requests,
|
|
|
|
scikit-learn,
|
|
|
|
scipy,
|
|
|
|
spacy,
|
|
|
|
tqdm,
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "textacy";
|
2023-11-16 04:20:00 +00:00
|
|
|
version = "0.13.0";
|
2021-06-28 23:13:55 +00:00
|
|
|
disabled = pythonOlder "3.7";
|
2023-11-16 04:20:00 +00:00
|
|
|
pyproject = true;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2023-11-16 04:20:00 +00:00
|
|
|
sha256 = "sha256-a+AkSMCPx9fE7fhSiQBuOaSlPvdHIB/yS2dcZS9AxoY=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
cachetools
|
|
|
|
cytoolz
|
2023-11-16 04:20:00 +00:00
|
|
|
floret
|
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
|
|
|
|
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
|
|
|
];
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
2021-06-28 23:13:55 +00:00
|
|
|
|
|
|
|
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;
|
|
|
|
};
|
|
|
|
}
|