depot/third_party/nixpkgs/pkgs/development/python-modules/nltk/default.nix
Default email 4bac34ead1 Project import generated by Copybara.
GitOrigin-RevId: 724bfc0892363087709bd3a5a1666296759154b1
2023-02-09 12:40:11 +01:00

49 lines
1.1 KiB
Nix

{ lib
, fetchPypi
, buildPythonPackage
, pythonOlder
, click
, joblib
, regex
, tqdm
}:
buildPythonPackage rec {
pname = "nltk";
version = "3.8.1";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
extension = "zip";
hash = "sha256-GDTaPQaCy6Tyzt4vmq1rD6+2RhukUdsO+2+cOXmNZNM=";
};
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;
pythonImportsCheck = [
"nltk"
];
meta = with lib; {
description = "Natural Language Processing ToolKit";
homepage = "http://nltk.org/";
license = licenses.asl20;
maintainers = with maintainers; [ lheckemann ];
};
}