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