33 lines
678 B
Nix
33 lines
678 B
Nix
{
|
|
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 ];
|
|
};
|
|
}
|