python3Packages.cltk: init at 1.3.0

This commit is contained in:
Kierán Meinhardt
2024-09-24 20:29:39 +02:00
parent 05f6d87a01
commit 6ce7cb859e
2 changed files with 67 additions and 0 deletions
@@ -0,0 +1,65 @@
{
buildPythonPackage,
lib,
fetchPypi,
gitpython,
gensim,
tqdm,
torch,
stringcase,
stanza,
spacy,
scipy,
scikit-learn,
requests,
rapidfuzz,
pyyaml,
nltk,
boltons,
poetry-core,
greek-accentuation,
}:
buildPythonPackage rec {
pname = "cltk";
format = "pyproject";
version = "1.3.0";
src = fetchPypi {
inherit pname version;
hash = "sha256-jAxvToUIo333HSVQDYVyUBY3YP+m1RnlNGelcvktp6s=";
};
postPatch = ''
substituteInPlace pyproject.toml \
--replace-fail "poetry>=1.1.13" poetry-core \
--replace-fail "poetry.masonry.api" "poetry.core.masonry.api" \
--replace-fail 'scipy = "<1.13.0"' 'scipy = "^1"' \
--replace-fail 'boltons = "^21.0.0"' 'boltons = "^24.0.0"'
'';
propagatedBuildInputs = [
gitpython
gensim
boltons
greek-accentuation
pyyaml
nltk
rapidfuzz
requests
scikit-learn
scipy
spacy
stanza
stringcase
torch
tqdm
];
nativeBuildInputs = [ poetry-core ];
meta = with lib; {
description = "Natural language processing (NLP) framework for pre-modern languages";
homepage = "https://cltk.org";
license = licenses.mit;
maintainers = with maintainers; [ kmein ];
};
}
+2
View File
@@ -2327,6 +2327,8 @@ self: super: with self; {
cloup = callPackage ../development/python-modules/cloup { };
cltk = callPackage ../development/python-modules/cltk { };
clustershell = callPackage ../development/python-modules/clustershell { };
clvm = throw "clvm has been removed. see https://github.com/NixOS/nixpkgs/pull/270254";