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