mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-29 02:13:23 +00:00
5356420466
$ find -type f -name '*.nix' -print0 | xargs -P "$(nproc)" -0 sed -i \ -e 's!with lib.maintainers; \[ *\];![ ];!' \ -e 's!with maintainers; \[ *\];![ ];!'
41 lines
946 B
Nix
41 lines
946 B
Nix
{
|
|
buildPythonPackage,
|
|
lib,
|
|
fetchPypi,
|
|
docopt,
|
|
delegator-py,
|
|
pytest,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
version = "0.5.13";
|
|
format = "setuptools";
|
|
pname = "num2words";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-owZHFvu/kNdcRJRQzr+8c6ahPmOyUx0JvezDqxoiCc8=";
|
|
};
|
|
|
|
propagatedBuildInputs = [ docopt ];
|
|
|
|
nativeCheckInputs = [
|
|
delegator-py
|
|
pytest
|
|
];
|
|
|
|
checkPhase = ''
|
|
pytest -k 'not cli_with_lang'
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "Modules to convert numbers to words. 42 --> forty-two";
|
|
mainProgram = "num2words";
|
|
homepage = "https://github.com/savoirfairelinux/num2words";
|
|
license = 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";
|
|
};
|
|
}
|