1{ lib, buildPythonPackage, fetchFromGitHub, pytest, pytestrunner, pytestcov, pytestflakes, pytestpep8, sphinx, six }:
2
3buildPythonPackage rec {
4 pname = "python-utils";
5 version = "2.2.0";
6 name = pname + "-" + version;
7
8 src = fetchFromGitHub {
9 owner = "WoLpH";
10 repo = "python-utils";
11 rev = "v${version}";
12 sha256 = "1i3q9frai08nvrcmh4dg4rr0grncm68w2c097z5g1mfwdf9sv7df";
13 };
14
15 checkInputs = [ pytest pytestrunner pytestcov pytestflakes pytestpep8 sphinx ];
16
17 postPatch = ''
18 # pytest-runner is only actually required in checkPhase
19 substituteInPlace setup.py --replace "setup_requires=['pytest-runner']," ""
20 '';
21
22 # Tests failing
23 doCheck = false;
24
25 checkPhase = ''
26 py.test
27 '';
28
29 propagatedBuildInputs = [ six ];
30
31 meta = with lib; {
32 description = "Module with some convenient utilities";
33 homepage = "https://github.com/WoLpH/python-utils";
34 license = licenses.bsd3;
35 };
36}