aboutsummaryrefslogtreecommitdiff
path: root/nixpkgs/pkgs/development/python-modules/textacy
diff options
context:
space:
mode:
authorKatharina Fey <kookie@spacekookie.de>2019-10-05 12:43:18 +0000
committerKatharina Fey <kookie@spacekookie.de>2019-10-05 12:44:52 +0000
commitcf85056ba64caf3267d43255ef4a1243e9c8ee3b (patch)
tree3051519e9c8275b870aac43f80af875715c9d124 /nixpkgs/pkgs/development/python-modules/textacy
parent1148b1d122bc03e9a3665856c9b7bb96bd4e3994 (diff)
parent2436c27541b2f52deea3a4c1691216a02152e729 (diff)
Add 'nixpkgs/' from commit '2436c27541b2f52deea3a4c1691216a02152e729'
git-subtree-dir: nixpkgs git-subtree-mainline: 1148b1d122bc03e9a3665856c9b7bb96bd4e3994 git-subtree-split: 2436c27541b2f52deea3a4c1691216a02152e729
Diffstat (limited to 'nixpkgs/pkgs/development/python-modules/textacy')
-rw-r--r--nixpkgs/pkgs/development/python-modules/textacy/default.nix59
1 files changed, 59 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/development/python-modules/textacy/default.nix b/nixpkgs/pkgs/development/python-modules/textacy/default.nix
new file mode 100644
index 00000000000..454cff5e4a8
--- /dev/null
+++ b/nixpkgs/pkgs/development/python-modules/textacy/default.nix
@@ -0,0 +1,59 @@
+{ 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 ];
+ };
+}