1{ fetchPypi, buildPythonPackage, lib, six, singledispatch, isPy3k }:
2
3buildPythonPackage rec {
4 version = "3.4.5";
5 pname = "nltk";
6
7 src = fetchPypi {
8 inherit pname version;
9 extension = "zip";
10 sha256 = "153x2clrnigs74jdgnn3qmljdjj4gprmvpdvh49i18ls4m8mbm5y";
11 };
12
13 propagatedBuildInputs = [ six ] ++ lib.optional (!isPy3k) singledispatch;
14
15 # Tests require some data, the downloading of which is impure. It would
16 # probably make sense to make the data another derivation, but then feeding
17 # that into the tests (given that we need nltk itself to download the data,
18 # unless there's an easy way to download it without nltk's downloader) might
19 # be complicated. For now let's just disable the tests and hope for the
20 # best.
21 doCheck = false;
22
23 meta = {
24 description = "Natural Language Processing ToolKit";
25 homepage = http://nltk.org/;
26 license = lib.licenses.asl20;
27 maintainers = with lib.maintainers; [ lheckemann ];
28 };
29}