python312Packages.text2digits: init at 0.1.0

(cherry picked from commit 3601d5e8a6)
This commit is contained in:
seth
2024-11-17 21:08:13 -05:00
committed by Seth Flynn
parent bfb42d4341
commit 52ca325594
2 changed files with 34 additions and 0 deletions

View File

@@ -0,0 +1,32 @@
{
lib,
buildPythonPackage,
fetchPypi,
pypaInstallHook,
setuptoolsBuildHook,
}:
buildPythonPackage rec {
pname = "text2digits";
version = "0.1.0";
pyproject = false;
src = fetchPypi {
inherit pname version;
hash = "sha256-oB2NyNVxediIulid9A4Ccw878t2JKrIsN1OOR5lyi7I=";
};
nativeBuildInputs = [
pypaInstallHook
setuptoolsBuildHook
];
pythonImportsCheck = [ "text2digits" ];
meta = {
description = "Converts text such as 'twenty three' to number/digit '23' in any sentence";
homepage = "https://github.com/ShailChoksi/text2digits";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ getchoo ];
};
}

View File

@@ -16894,6 +16894,8 @@ self: super: with self; {
text-unidecode = callPackage ../development/python-modules/text-unidecode { };
text2digits = callPackage ../development/python-modules/text2digits { };
textacy = callPackage ../development/python-modules/textacy { };
textdistance = callPackage ../development/python-modules/textdistance { };