1{ 2 lib, 3 buildPythonPackage, 4 fetchPypi, 5 pypaInstallHook, 6 setuptoolsBuildHook, 7}: 8 9buildPythonPackage rec { 10 pname = "text2digits"; 11 version = "0.1.0"; 12 pyproject = false; 13 14 src = fetchPypi { 15 inherit pname version; 16 hash = "sha256-oB2NyNVxediIulid9A4Ccw878t2JKrIsN1OOR5lyi7I="; 17 }; 18 19 nativeBuildInputs = [ 20 pypaInstallHook 21 setuptoolsBuildHook 22 ]; 23 24 pythonImportsCheck = [ "text2digits" ]; 25 26 meta = { 27 description = "Converts text such as 'twenty three' to number/digit '23' in any sentence"; 28 homepage = "https://github.com/ShailChoksi/text2digits"; 29 license = lib.licenses.mit; 30 maintainers = with lib.maintainers; [ getchoo ]; 31 }; 32}