From 45588a7a7c97dba180cf9e189902594c29920e37 Mon Sep 17 00:00:00 2001 From: davidak Date: Sun, 19 Feb 2017 02:18:32 +0100 Subject: [PATCH] PyZufall: init at 0.13.2 --- .../python-modules/pyzufall/default.nix | 30 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 ++ 2 files changed, 32 insertions(+) create mode 100644 pkgs/development/python-modules/pyzufall/default.nix 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 ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 6df45b3508f5..2ede0b37201e 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -360,6 +360,8 @@ in { relatorio = callPackage ../development/python-modules/relatorio { }; + pyzufall = callPackage ../development/python-modules/pyzufall { }; + rhpl = if !isPy3k then callPackage ../development/python-modules/rhpl {} else throw "rhpl not supported for interpreter ${python.executable}"; sip = callPackage ../development/python-modules/sip { };