blob: 9beeb4cb0a69668c9bccefc3ec32b367865c54dd (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
|
{ lib
, fetchPypi
, buildPythonPackage
, pythonOlder
, click
, joblib
, regex
, tqdm
}:
buildPythonPackage rec {
pname = "nltk";
version = "3.7";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
extension = "zip";
hash = "sha256-1lB9ZGDOx21wr+pCQqImp1QvhcZpF3ucf1YrfPGwVQI=";
};
propagatedBuildInputs = [
click
joblib
regex
tqdm
];
# Tests require some data, the downloading of which is impure. It would
# probably make sense to make the data another derivation, but then feeding
# that into the tests (given that we need nltk itself to download the data,
# unless there's an easy way to download it without nltk's downloader) might
# be complicated. For now let's just disable the tests and hope for the
# best.
doCheck = false;
pythonImportsCheck = [
"nltk"
];
meta = with lib; {
description = "Natural Language Processing ToolKit";
homepage = "http://nltk.org/";
license = licenses.asl20;
maintainers = with maintainers; [ lheckemann ];
};
}
|