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
|
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
|
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";
|
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
|
|
|
];
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2021-06-28 23:13:55 +00:00
|
|
|
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;
|
|
|
|
};
|
|
|
|
}
|