summary refs log tree commit diff
path: root/pkgs/development/python-modules/pyzufall
diff options
context:
space:
mode:
authordavidak <git@davidak.de>2017-02-19 02:18:32 +0100
committerdavidak <git@davidak.de>2017-02-22 22:59:42 +0100
commit45588a7a7c97dba180cf9e189902594c29920e37 (patch)
tree70c1797ffea573240ae42c0ccdf82181f6475226 /pkgs/development/python-modules/pyzufall
parent77670c04c7396bbdf62b36561e8e9b2a88b3b4dc (diff)
downloadnixlib-45588a7a7c97dba180cf9e189902594c29920e37.tar
nixlib-45588a7a7c97dba180cf9e189902594c29920e37.tar.gz
nixlib-45588a7a7c97dba180cf9e189902594c29920e37.tar.bz2
nixlib-45588a7a7c97dba180cf9e189902594c29920e37.tar.lz
nixlib-45588a7a7c97dba180cf9e189902594c29920e37.tar.xz
nixlib-45588a7a7c97dba180cf9e189902594c29920e37.tar.zst
nixlib-45588a7a7c97dba180cf9e189902594c29920e37.zip
PyZufall: init at 0.13.2
Diffstat (limited to 'pkgs/development/python-modules/pyzufall')
-rw-r--r--pkgs/development/python-modules/pyzufall/default.nix30
1 files changed, 30 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/pyzufall/default.nix b/pkgs/development/python-modules/pyzufall/default.nix
new file mode 100644
index 000000000000..5777a6137ae4
--- /dev/null
+++ b/pkgs/development/python-modules/pyzufall/default.nix
@@ -0,0 +1,30 @@
+{ stdenv, fetchurl, python, buildPythonPackage, nose, future, coverage }:
+
+buildPythonPackage rec {
+  pname = "PyZufall";
+  version = "0.13.2";
+  name = "${pname}-${version}";
+
+  src = fetchurl {
+    url = "mirror://pypi/${builtins.substring 0 1 pname}/${pname}/${name}.tar.gz";
+    sha256 = "1jffhi20m82fdf78bjhncbdxkfzcskrlipxlrqq9741xdvrn14b5";
+  };
+
+  # disable tests due to problem with nose
+  # https://github.com/nose-devs/nose/issues/1037
+  doCheck = false;
+
+  buildInputs = [ nose coverage ];
+  propagatedBuildInputs = [ future ];
+
+  checkPhase = ''
+    ${python.interpreter} setup.py nosetests
+  '';
+
+  meta = with stdenv.lib; {
+    homepage = "https://pyzufall.readthedocs.io/de/latest/";
+    description = "Library for generating random data and sentences in german language";
+    license = licenses.gpl3Plus;
+    maintainers = with maintainers; [ davidak ];
+  };
+}