1{ fetchurl, buildPythonPackage, isPy33, lib, six, pythonAtLeast, pythonOlder }:
2
3buildPythonPackage rec {
4 version = "3.2.4";
5 pname = "nltk";
6 name = "${pname}-${version}";
7
8 src = fetchurl {
9 url = "mirror://pypi/n/nltk/nltk-${version}.tar.gz";
10 sha256 = "8682ae52f5de4f2ba7b77bd78222a38575ad01ef29946214b254dfdf93a3a0eb";
11 };
12
13 propagatedBuildInputs = [ six ];
14
15 disabled = pythonOlder "2.7" || pythonOlder "3.4" && (pythonAtLeast "3.0");
16
17 # Tests require some data, the downloading of which is impure. It would
18 # probably make sense to make the data another derivation, but then feeding
19 # that into the tests (given that we need nltk itself to download the data,
20 # unless there's an easy way to download it without nltk's downloader) might
21 # be complicated. For now let's just disable the tests and hope for the
22 # best.
23 doCheck = false;
24
25 meta = {
26 description = "Natural Language Processing ToolKit";
27 homepage = http://nltk.org/;
28 license = lib.licenses.asl20;
29 maintainers = with lib.maintainers; [ lheckemann ];
30 };
31}