depot/third_party/nixpkgs/pkgs/development/python-modules/nltk/default.nix
Default email 2495e3f88b Project import generated by Copybara.
GitOrigin-RevId: 78cd22c1b8604de423546cd49bfe264b786eca13
2022-01-03 17:56:52 +01:00

39 lines
990 B
Nix

{ fetchPypi, buildPythonPackage, lib, isPy3k
, click
, joblib
, regex
, tqdm
}:
buildPythonPackage rec {
version = "3.6.7";
pname = "nltk";
src = fetchPypi {
inherit pname version;
extension = "zip";
sha256 = "51bf1aef5304740a708be7c8e683f7798f03dc5c7a7e7feb758be9e95f4585e3";
};
propagatedBuildInputs = [
click
joblib
regex
tqdm
];
# 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 ];
};
}