2022-02-10 12:07:33 +00:00
|
|
|
{ lib
|
|
|
|
, fetchPypi
|
|
|
|
, buildPythonPackage
|
|
|
|
, pythonOlder
|
2020-06-07 09:11:18 +01:00
|
|
|
, click
|
|
|
|
, joblib
|
|
|
|
, regex
|
|
|
|
, tqdm
|
|
|
|
}:
|
2017-03-04 18:09:10 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2017-05-27 10:25:35 +01:00
|
|
|
pname = "nltk";
|
2022-02-10 12:07:33 +00:00
|
|
|
version = "3.7";
|
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
2017-03-04 18:09:10 +00:00
|
|
|
|
2019-04-14 11:38:29 +01:00
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
|
|
|
extension = "zip";
|
2022-02-10 12:07:33 +00:00
|
|
|
hash = "sha256-1lB9ZGDOx21wr+pCQqImp1QvhcZpF3ucf1YrfPGwVQI=";
|
2017-03-04 18:09:10 +00:00
|
|
|
};
|
|
|
|
|
2020-06-07 09:11:18 +01:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
click
|
|
|
|
joblib
|
|
|
|
regex
|
|
|
|
tqdm
|
2021-12-31 08:10:25 +00:00
|
|
|
];
|
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;
|
|
|
|
|
2022-02-10 12:07:33 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"nltk"
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = with lib; {
|
2017-03-04 18:09:10 +00:00
|
|
|
description = "Natural Language Processing ToolKit";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "http://nltk.org/";
|
2022-02-10 12:07:33 +00:00
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ lheckemann ];
|
2017-03-04 18:09:10 +00:00
|
|
|
};
|
|
|
|
}
|