1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-01 01:51:24 +00:00
nixpkgs/pkgs/development/python-modules/textacy/default.nix
2019-09-04 01:28:05 -07:00

60 lines
1.1 KiB
Nix

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