summary refs log tree commit diff
path: root/pkgs/development/python-modules/num2words
diff options
context:
space:
mode:
authorJonathan Ringer <jonringer117@gmail.com>2019-08-05 18:46:56 -0700
committerFrederik Rietdijk <fridh@fridh.nl>2019-08-18 11:48:39 +0200
commitd5d628f35cd837924d468d1fc0432684ddf2793b (patch)
tree33efd3cb39321bb874e0dc3455eda8c882e156c6 /pkgs/development/python-modules/num2words
parentfcd2858063ae98eb266a73f921130aa976c35554 (diff)
downloadnixpkgs-d5d628f35cd837924d468d1fc0432684ddf2793b.tar
nixpkgs-d5d628f35cd837924d468d1fc0432684ddf2793b.tar.gz
nixpkgs-d5d628f35cd837924d468d1fc0432684ddf2793b.tar.bz2
nixpkgs-d5d628f35cd837924d468d1fc0432684ddf2793b.tar.lz
nixpkgs-d5d628f35cd837924d468d1fc0432684ddf2793b.tar.xz
nixpkgs-d5d628f35cd837924d468d1fc0432684ddf2793b.tar.zst
nixpkgs-d5d628f35cd837924d468d1fc0432684ddf2793b.zip
pythonPackages.num2words: init at 0.5.10
Diffstat (limited to 'pkgs/development/python-modules/num2words')
-rw-r--r--pkgs/development/python-modules/num2words/default.nix35
1 files changed, 35 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/num2words/default.nix b/pkgs/development/python-modules/num2words/default.nix
new file mode 100644
index 00000000000..bce4c0426e4
--- /dev/null
+++ b/pkgs/development/python-modules/num2words/default.nix
@@ -0,0 +1,35 @@
+{ buildPythonPackage
+, lib
+, fetchPypi
+, docopt
+, delegator-py
+, pytest
+}:
+
+buildPythonPackage rec {
+  version = "0.5.10";
+  pname = "num2words";
+
+  src = fetchPypi {
+    inherit pname version;
+    sha256 = "0myc27k087rhgpwn1a1dffzl32rwz6ngdbf3rm2i0zlgcxh4zk9p";
+  };
+
+  propagatedBuildInputs = [ docopt ];
+
+  checkInputs = [ delegator-py pytest ];
+
+  checkPhase = ''
+    pytest -k 'not cli_with_lang'
+  '';
+
+  meta = with lib; {
+    description = "Modules to convert numbers to words. 42 --> forty-two";
+    homepage = "https://github.com/savoirfairelinux/num2words";
+    license = licenses.lgpl21;
+    maintainers = with maintainers; [ jonringer ];
+
+    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";
+  };
+}