+26
-18
pkgs/development/python-modules/textacy/default.nix
+26
-18
pkgs/development/python-modules/textacy/default.nix
···
1
-
{ lib, buildPythonPackage, fetchPypi, isPy27
1
+
{ lib
2
+
, buildPythonPackage
2
3
, cachetools
3
4
, cytoolz
5
+
, fetchPypi
4
6
, jellyfish
7
+
, joblib
5
8
, matplotlib
6
9
, networkx
7
10
, numpy
8
11
, pyemd
9
12
, pyphen
10
-
, pytest
13
+
, pytestCheckHook
14
+
, pythonOlder
11
15
, requests
12
16
, scikit-learn
13
17
, scipy
14
18
, spacy
15
-
, srsly
19
+
, tqdm
16
20
}:
17
21
18
22
buildPythonPackage rec {
19
23
pname = "textacy";
20
-
version = "0.10.1";
21
-
disabled = isPy27;
24
+
version = "0.11.0";
25
+
disabled = pythonOlder "3.7";
22
26
23
27
src = fetchPypi {
24
28
inherit pname version;
25
-
sha256 = "ff72adc6dbb85db6981324e226fff77830da57d7fe7e4adb2cafd9dc2a8bfa7d";
29
+
sha256 = "sha256-d/tyTCewoERA15iBv4H2LORFzgco15fnnN1sneeGuF4=";
26
30
};
27
31
28
32
propagatedBuildInputs = [
29
33
cachetools
30
34
cytoolz
31
35
jellyfish
36
+
joblib
32
37
matplotlib
33
38
networkx
34
39
numpy
···
38
43
scikit-learn
39
44
scipy
40
45
spacy
41
-
srsly
46
+
tqdm
42
47
];
43
48
44
-
checkInputs = [ pytest ];
45
-
# almost all tests have to deal with downloading a dataset, only test pure tests
46
-
checkPhase = ''
47
-
pytest tests/test_text_utils.py \
48
-
tests/test_utils.py \
49
-
tests/preprocessing \
50
-
tests/datasets/test_base_dataset.py
51
-
'';
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" ];
52
63
53
64
meta = with lib; {
54
-
# scikit-learn in pythonPackages is too new for textacy
55
-
# remove as soon as textacy support scikit-learn >= 0.24
56
-
broken = true;
57
65
description = "Higher-level text processing, built on spaCy";
58
66
homepage = "https://textacy.readthedocs.io/";
59
67
license = licenses.asl20;