3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/python-modules/textacy/default.nix

60 lines
1.1 KiB
Nix
Raw Normal View History

{ lib, buildPythonPackage, fetchPypi, isPy27
2017-09-13 01:01:01 +01:00
, cachetools
, cytoolz
, jellyfish
2017-09-13 01:01:01 +01:00
, matplotlib
, networkx
, numpy
, pyemd
, pyphen
, pytest
2017-09-13 01:01:01 +01:00
, requests
, scikitlearn
, scipy
, spacy
, srsly
2017-09-13 01:01:01 +01:00
}:
buildPythonPackage rec {
pname = "textacy";
version = "0.10.1";
disabled = isPy27;
2017-09-13 01:01:01 +01:00
src = fetchPypi {
inherit pname version;
sha256 = "ff72adc6dbb85db6981324e226fff77830da57d7fe7e4adb2cafd9dc2a8bfa7d";
2017-09-13 01:01:01 +01:00
};
propagatedBuildInputs = [
cachetools
cytoolz
jellyfish
2017-09-13 01:01:01 +01:00
matplotlib
networkx
numpy
pyemd
pyphen
requests
scikitlearn
scipy
spacy
srsly
2017-09-13 01:01:01 +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
'';
meta = with lib; {
2017-09-13 01:01:01 +01:00
description = "Higher-level text processing, built on spaCy";
homepage = "https://textacy.readthedocs.io/";
2017-09-13 01:01:01 +01:00
license = licenses.asl20;
maintainers = with maintainers; [ rvl ];
};
}