depot/third_party/nixpkgs/pkgs/development/python-modules/nltk/default.nix
Default email 8ac5e011d6 Project import generated by Copybara.
GitOrigin-RevId: 2c3273caa153ee8eb5786bc8141b85b859e7efd7
2020-04-24 19:36:52 -04:00

29 lines
970 B
Nix

{ fetchPypi, buildPythonPackage, lib, six, singledispatch, isPy3k }:
buildPythonPackage rec {
version = "3.4.5";
pname = "nltk";
src = fetchPypi {
inherit pname version;
extension = "zip";
sha256 = "153x2clrnigs74jdgnn3qmljdjj4gprmvpdvh49i18ls4m8mbm5y";
};
propagatedBuildInputs = [ six ] ++ 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 ];
};
}