1{ stdenv, fetchurl, python, buildPythonPackage, nose, future, coverage }:
2
3buildPythonPackage rec {
4 pname = "PyZufall";
5 version = "0.13.2";
6 name = "${pname}-${version}";
7
8 src = fetchurl {
9 url = "mirror://pypi/${builtins.substring 0 1 pname}/${pname}/${name}.tar.gz";
10 sha256 = "1jffhi20m82fdf78bjhncbdxkfzcskrlipxlrqq9741xdvrn14b5";
11 };
12
13 # disable tests due to problem with nose
14 # https://github.com/nose-devs/nose/issues/1037
15 doCheck = false;
16
17 buildInputs = [ nose coverage ];
18 propagatedBuildInputs = [ future ];
19
20 checkPhase = ''
21 ${python.interpreter} setup.py nosetests
22 '';
23
24 meta = with stdenv.lib; {
25 homepage = https://pyzufall.readthedocs.io/de/latest/;
26 description = "Library for generating random data and sentences in german language";
27 license = licenses.gpl3Plus;
28 maintainers = with maintainers; [ davidak ];
29 };
30}