blob: eb1d80b1f1ab0b8fadf7e5da9a1ce9d0a44408b4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
|
{
buildPythonPackage,
lib,
fetchPypi,
docopt,
delegator-py,
pytest,
}:
buildPythonPackage rec {
version = "0.5.14";
format = "setuptools";
pname = "num2words";
src = fetchPypi {
inherit pname version;
hash = "sha256-sGbsGOVrZhajs4CGtXR9qvuqiGiyJqNhJ+BFHAzzecY=";
};
propagatedBuildInputs = [ docopt ];
nativeCheckInputs = [
delegator-py
pytest
];
checkPhase = ''
pytest -k 'not cli_with_lang'
'';
meta = {
description = "Modules to convert numbers to words. 42 --> forty-two";
mainProgram = "num2words";
homepage = "https://github.com/savoirfairelinux/num2words";
license = lib.licenses.lgpl21;
maintainers = [ ];
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";
};
}
|