1
0
Fork 0
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-07-01 21:39:21 +03:00
nixpkgs/pkgs/development/python-modules/nltk/default.nix

50 lines
1.1 KiB
Nix
Raw Normal View History

{ lib
, fetchPypi
, buildPythonPackage
, pythonOlder
2020-06-07 10:11:18 +02:00
, click
, joblib
, regex
, tqdm
}:
2017-03-04 18:09:10 +00:00
buildPythonPackage rec {
pname = "nltk";
2022-12-14 02:18:54 +00:00
version = "3.8";
format = "setuptools";
disabled = pythonOlder "3.7";
2017-03-04 18:09:10 +00:00
src = fetchPypi {
inherit pname version;
extension = "zip";
2022-12-14 02:18:54 +00:00
hash = "sha256-dLMIJqN9eNU0JxBbvQN92IAlG+Jp/KZO5TCDikbtVfw=";
2017-03-04 18:09:10 +00:00
};
2020-06-07 10:11:18 +02:00
propagatedBuildInputs = [
click
joblib
regex
tqdm
];
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;
pythonImportsCheck = [
"nltk"
];
meta = with lib; {
2017-03-04 18:09:10 +00:00
description = "Natural Language Processing ToolKit";
homepage = "http://nltk.org/";
license = licenses.asl20;
maintainers = with maintainers; [ lheckemann ];
2017-03-04 18:09:10 +00:00
};
}