depot/third_party/nixpkgs/pkgs/development/python-modules/nltk/default.nix
Default email 818c48e259 Project import generated by Copybara.
GitOrigin-RevId: 14aef06d9b3ad1d07626bdbb16083b83f92dc6c1
2021-10-04 09:37:57 -03:00

39 lines
1 KiB
Nix

{ fetchPypi, buildPythonPackage, lib, six, singledispatch ? null, isPy3k
, click
, joblib
, regex
, tqdm
}:
buildPythonPackage rec {
version = "3.6.4";
pname = "nltk";
src = fetchPypi {
inherit pname version;
extension = "zip";
sha256 = "dd7e8012af25737e6aa7bc26568a319508dca789f13e62afa09798dccc7798b5";
};
propagatedBuildInputs = [
click
joblib
regex
tqdm
] ++ lib.optional (!isPy3k) singledispatch;
# 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 ];
};
}