1{ lib
2, buildPythonPackage
3, cachetools
4, cytoolz
5, fetchPypi
6, jellyfish
7, joblib
8, matplotlib
9, networkx
10, numpy
11, pyemd
12, pyphen
13, pytestCheckHook
14, pythonOlder
15, requests
16, scikit-learn
17, scipy
18, spacy
19, tqdm
20}:
21
22buildPythonPackage rec {
23 pname = "textacy";
24 version = "0.11.0";
25 disabled = pythonOlder "3.7";
26
27 src = fetchPypi {
28 inherit pname version;
29 sha256 = "sha256-d/tyTCewoERA15iBv4H2LORFzgco15fnnN1sneeGuF4=";
30 };
31
32 propagatedBuildInputs = [
33 cachetools
34 cytoolz
35 jellyfish
36 joblib
37 matplotlib
38 networkx
39 numpy
40 pyemd
41 pyphen
42 requests
43 scikit-learn
44 scipy
45 spacy
46 tqdm
47 ];
48
49 checkInputs = [
50 pytestCheckHook
51 ];
52
53 pytestFlagsArray = [
54 # Almost all tests have to deal with downloading a dataset, only test pure tests
55 "tests/test_constants.py"
56 "tests/preprocessing/test_normalize.py"
57 "tests/similarity/test_edits.py"
58 "tests/preprocessing/test_resources.py"
59 "tests/preprocessing/test_replace.py"
60 ];
61
62 pythonImportsCheck = [ "textacy" ];
63
64 meta = with lib; {
65 description = "Higher-level text processing, built on spaCy";
66 homepage = "https://textacy.readthedocs.io/";
67 license = licenses.asl20;
68 maintainers = with maintainers; [ rvl ];
69 };
70}