Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / python-modules / textacy / default.nix
blob4167cfd7d969ba4282aa07020ddbbe97045b6670
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
23 buildPythonPackage rec {
24   pname = "textacy";
25   version = "0.13.0";
26   disabled = pythonOlder "3.7";
27   pyproject = true;
29   src = fetchPypi {
30     inherit pname version;
31     sha256 = "sha256-a+AkSMCPx9fE7fhSiQBuOaSlPvdHIB/yS2dcZS9AxoY=";
32   };
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   ];
52   nativeCheckInputs = [
53     pytestCheckHook
54   ];
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   ];
65   pythonImportsCheck = [ "textacy" ];
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   };