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