2019-09-04 09:28:05 +01:00
|
|
|
{ lib, buildPythonPackage, fetchPypi, isPy27
|
2017-09-13 01:01:01 +01:00
|
|
|
, cachetools
|
|
|
|
, cytoolz
|
2019-09-04 09:28:05 +01:00
|
|
|
, jellyfish
|
2017-09-13 01:01:01 +01:00
|
|
|
, matplotlib
|
|
|
|
, networkx
|
|
|
|
, numpy
|
|
|
|
, pyemd
|
|
|
|
, pyphen
|
2019-09-04 09:28:05 +01:00
|
|
|
, pytest
|
2017-09-13 01:01:01 +01:00
|
|
|
, requests
|
|
|
|
, scikitlearn
|
|
|
|
, scipy
|
|
|
|
, spacy
|
2019-09-04 09:28:05 +01:00
|
|
|
, srsly
|
2017-09-13 01:01:01 +01:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "textacy";
|
2020-06-06 07:47:33 +01:00
|
|
|
version = "0.10.0";
|
2019-09-04 09:28:05 +01:00
|
|
|
disabled = isPy27;
|
2017-09-13 01:01:01 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-06-06 07:47:33 +01:00
|
|
|
sha256 = "0a824333f53d19d24ca864c92da52f3fecd412f4ef3e1448864c45f06189fd6d";
|
2017-09-13 01:01:01 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
cachetools
|
|
|
|
cytoolz
|
2019-09-04 09:28:05 +01:00
|
|
|
jellyfish
|
2017-09-13 01:01:01 +01:00
|
|
|
matplotlib
|
|
|
|
networkx
|
|
|
|
numpy
|
|
|
|
pyemd
|
|
|
|
pyphen
|
|
|
|
requests
|
|
|
|
scikitlearn
|
|
|
|
scipy
|
|
|
|
spacy
|
2019-09-04 09:28:05 +01:00
|
|
|
srsly
|
2017-09-13 01:01:01 +01:00
|
|
|
];
|
|
|
|
|
2019-09-04 09:28:05 +01:00
|
|
|
checkInputs = [ pytest ];
|
|
|
|
# almost all tests have to deal with downloading a dataset, only test pure tests
|
|
|
|
checkPhase = ''
|
|
|
|
pytest tests/test_text_utils.py \
|
|
|
|
tests/test_utils.py \
|
|
|
|
tests/preprocessing \
|
|
|
|
tests/datasets/test_base_dataset.py
|
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 ];
|
|
|
|
};
|
|
|
|
}
|