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

40 lines
1.0 KiB
Nix
Raw Normal View History

2020-06-07 08:11:18 +00:00
{ fetchPypi, buildPythonPackage, lib, six, singledispatch, isPy3k
, click
, joblib
, regex
, tqdm
}:
2017-03-04 18:09:10 +00:00
buildPythonPackage rec {
2020-06-06 06:47:20 +00:00
version = "3.5";
pname = "nltk";
2017-03-04 18:09:10 +00:00
src = fetchPypi {
inherit pname version;
extension = "zip";
2020-06-06 06:47:20 +00:00
sha256 = "845365449cd8c5f9731f7cb9f8bd6fd0767553b9d53af9eb1b3abf7700936b35";
2017-03-04 18:09:10 +00:00
};
2020-06-07 08:11:18 +00:00
propagatedBuildInputs = [
click
joblib
regex
tqdm
] ++ lib.optional (!isPy3k) singledispatch;
2017-03-04 18:09:10 +00: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/";
2017-03-04 18:09:10 +00:00
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [ lheckemann ];
};
}