python311Packages.word2number: init at 1.1

Signed-off-by: Ihar Hrachyshka <ihar.hrachyshka@gmail.com>
This commit is contained in:
Ihar Hrachyshka
2025-01-30 21:26:15 -05:00
parent 94921298c6
commit 33f5f7a0e5
2 changed files with 47 additions and 0 deletions
@@ -0,0 +1,45 @@
{
lib,
buildPythonPackage,
fetchFromGitHub,
setuptools-scm,
future,
python,
}:
buildPythonPackage rec {
pname = "word2number";
version = "1.1";
pyproject = true;
src = fetchFromGitHub {
owner = "akshaynagpal";
repo = "w2n";
tag = version;
hash = "sha256-dgHPEfieNDZnP6+YvywvN3ZzmeICav0WMYKkWDSJ/LE=";
};
build-system = [
setuptools-scm
];
dependencies = [
future
];
pythonImportsCheck = [
"word2number"
];
checkPhase = ''
${lib.getExe python} unit_testing.py
'';
meta = {
changelog = "https://github.com/akshaynagpal/w2n/releases/tag/${version}";
description = "Convert number words (eg. twenty one) to numeric digits (21)";
homepage = "http://w2n.readthedocs.io/";
license = [ lib.licenses.mit ];
maintainers = [ lib.maintainers.booxter ];
};
}
+2
View File
@@ -18152,6 +18152,8 @@ self: super: with self; {
woodblock = callPackage ../development/python-modules/woodblock { };
word2number = callPackage ../development/python-modules/word2number { };
wordcloud = callPackage ../development/python-modules/wordcloud { };
wordfreq = callPackage ../development/python-modules/wordfreq { };