Files
nixpkgs/pkgs/development/python-modules/num2words/default.nix
T
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

41 lines
940 B
Nix

{
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";
};
}