python311Packages.word2number: init at 1.1
Signed-off-by: Ihar Hrachyshka <ihar.hrachyshka@gmail.com>
This commit is contained in:
@@ -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 ];
|
||||
};
|
||||
}
|
||||
@@ -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 { };
|
||||
|
||||
Reference in New Issue
Block a user