pythonPackages.num2words: init at 0.5.10
This commit is contained in:
parent
fcd2858063
commit
d5d628f35c
2 changed files with 37 additions and 0 deletions
35
pkgs/development/python-modules/num2words/default.nix
Normal file
35
pkgs/development/python-modules/num2words/default.nix
Normal file
|
@ -0,0 +1,35 @@
|
|||
{ buildPythonPackage
|
||||
, lib
|
||||
, fetchPypi
|
||||
, docopt
|
||||
, delegator-py
|
||||
, pytest
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
version = "0.5.10";
|
||||
pname = "num2words";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "0myc27k087rhgpwn1a1dffzl32rwz6ngdbf3rm2i0zlgcxh4zk9p";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ docopt ];
|
||||
|
||||
checkInputs = [ delegator-py pytest ];
|
||||
|
||||
checkPhase = ''
|
||||
pytest -k 'not cli_with_lang'
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "Modules to convert numbers to words. 42 --> forty-two";
|
||||
homepage = "https://github.com/savoirfairelinux/num2words";
|
||||
license = licenses.lgpl21;
|
||||
maintainers = with maintainers; [ jonringer ];
|
||||
|
||||
longDescription =
|
||||
"num2words is a library that converts numbers like 42 to words like forty-two. It supports multiple languages (see the list below for full list of languages) and can even generate ordinal numbers like forty-second";
|
||||
};
|
||||
}
|
|
@ -3899,6 +3899,8 @@ in {
|
|||
|
||||
ntplib = callPackage ../development/python-modules/ntplib { };
|
||||
|
||||
num2words = callPackage ../development/python-modules/num2words { };
|
||||
|
||||
numba = callPackage ../development/python-modules/numba { };
|
||||
|
||||
numcodecs = callPackage ../development/python-modules/numcodecs { };
|
||||
|
|
Loading…
Reference in a new issue