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