nixpkgs/pkgs/development/python-modules/nltk.nix
Frederik Rietdijk 6b999f3c42 Python: many package updates
Did not test all packages. Likely we'll have some breakage.
2017-05-27 14:25:08 +02:00

32 lines
1.0 KiB
Nix

{ fetchurl, buildPythonPackage, isPy33, lib, six, pythonAtLeast, pythonOlder }:
buildPythonPackage rec {
version = "3.2.4";
pname = "nltk";
name = "${pname}-${version}";
src = fetchurl {
url = "mirror://pypi/n/nltk/nltk-${version}.tar.gz";
sha256 = "8682ae52f5de4f2ba7b77bd78222a38575ad01ef29946214b254dfdf93a3a0eb";
};
propagatedBuildInputs = [ six ];
disabled = pythonOlder "2.7" || pythonOlder "3.4" && (pythonAtLeast "3.0");
# 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;
meta = {
description = "Natural Language Processing ToolKit";
homepage = http://nltk.org/;
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [ lheckemann ];
};
}