CLTK (#344260)

authored by lassulus and committed by GitHub f2d419d3 41bbffd4

+88
+65
pkgs/development/python-modules/cltk/default.nix
···
··· 1 + { 2 + buildPythonPackage, 3 + lib, 4 + fetchPypi, 5 + gitpython, 6 + gensim, 7 + tqdm, 8 + torch, 9 + stringcase, 10 + stanza, 11 + spacy, 12 + scipy, 13 + scikit-learn, 14 + requests, 15 + rapidfuzz, 16 + pyyaml, 17 + nltk, 18 + boltons, 19 + poetry-core, 20 + greek-accentuation, 21 + }: 22 + buildPythonPackage rec { 23 + pname = "cltk"; 24 + format = "pyproject"; 25 + version = "1.3.0"; 26 + src = fetchPypi { 27 + inherit pname version; 28 + hash = "sha256-jAxvToUIo333HSVQDYVyUBY3YP+m1RnlNGelcvktp6s="; 29 + }; 30 + 31 + postPatch = '' 32 + substituteInPlace pyproject.toml \ 33 + --replace-fail "poetry>=1.1.13" poetry-core \ 34 + --replace-fail "poetry.masonry.api" "poetry.core.masonry.api" \ 35 + --replace-fail 'scipy = "<1.13.0"' 'scipy = "^1"' \ 36 + --replace-fail 'boltons = "^21.0.0"' 'boltons = "^24.0.0"' 37 + ''; 38 + 39 + propagatedBuildInputs = [ 40 + gitpython 41 + gensim 42 + boltons 43 + greek-accentuation 44 + pyyaml 45 + nltk 46 + rapidfuzz 47 + requests 48 + scikit-learn 49 + scipy 50 + spacy 51 + stanza 52 + stringcase 53 + torch 54 + tqdm 55 + ]; 56 + 57 + nativeBuildInputs = [ poetry-core ]; 58 + 59 + meta = with lib; { 60 + description = "Natural language processing (NLP) framework for pre-modern languages"; 61 + homepage = "https://cltk.org"; 62 + license = licenses.mit; 63 + maintainers = with maintainers; [ kmein ]; 64 + }; 65 + }
+19
pkgs/development/python-modules/greek-accentuation/default.nix
···
··· 1 + { 2 + buildPythonPackage, 3 + lib, 4 + fetchPypi, 5 + }: 6 + buildPythonPackage rec { 7 + pname = "greek-accentuation"; 8 + version = "1.2.0"; 9 + src = fetchPypi { 10 + inherit pname version; 11 + hash = "sha256-l2HZXdqlLubvy2bWhhZVYGMpF0DXVKTDFehkcGF5xdk="; 12 + }; 13 + meta = with lib; { 14 + description = "Python 3 library for accenting (and analyzing the accentuation of) Ancient Greek words"; 15 + homepage = "https://github.com/jtauber/greek-accentuation"; 16 + license = licenses.mit; 17 + maintainers = with maintainers; [ kmein ]; 18 + }; 19 + }
+4
pkgs/top-level/python-packages.nix
··· 2386 2387 cloup = callPackage ../development/python-modules/cloup { }; 2388 2389 clustershell = callPackage ../development/python-modules/clustershell { }; 2390 2391 cma = callPackage ../development/python-modules/cma { }; ··· 5388 great-tables = callPackage ../development/python-modules/great-tables { }; 5389 5390 greeclimate = callPackage ../development/python-modules/greeclimate { }; 5391 5392 green = callPackage ../development/python-modules/green { }; 5393
··· 2386 2387 cloup = callPackage ../development/python-modules/cloup { }; 2388 2389 + cltk = callPackage ../development/python-modules/cltk { }; 2390 + 2391 clustershell = callPackage ../development/python-modules/clustershell { }; 2392 2393 cma = callPackage ../development/python-modules/cma { }; ··· 5390 great-tables = callPackage ../development/python-modules/great-tables { }; 5391 5392 greeclimate = callPackage ../development/python-modules/greeclimate { }; 5393 + 5394 + greek-accentuation = callPackage ../development/python-modules/greek-accentuation { }; 5395 5396 green = callPackage ../development/python-modules/green { }; 5397