nixpkgs/pkgs/development/python-modules/nltk/default.nix

30 lines
980 B
Nix
Raw Normal View History

{ fetchPypi, buildPythonPackage, lib, six, singledispatch, isPy3k, fetchpatch }:
2017-03-04 19:09:10 +01:00
buildPythonPackage rec {
2019-06-07 02:35:31 +02:00
version = "3.4.3";
pname = "nltk";
2017-03-04 19:09:10 +01:00
src = fetchPypi {
inherit pname version;
extension = "zip";
2019-06-07 02:35:31 +02:00
sha256 = "1cjkv4jmmlr0w4qi399ncgb6lp41mb9i352934288wh9xad15mqj";
2017-03-04 19:09:10 +01:00
};
propagatedBuildInputs = [ six ] ++ lib.optional (!isPy3k) singledispatch;
2017-03-04 19:09:10 +01:00
# 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 ];
};
}