1{ lib, buildPythonPackage, fetchPypi, pytest, pytestrunner, pytestcov, pytest-flakes, pytestpep8, sphinx, six }:
2
3buildPythonPackage rec {
4 pname = "python-utils";
5 version = "2.4.0";
6
7 src = fetchPypi {
8 inherit pname version;
9 sha256 = "12c0glzkm81ljgf6pwh0d4rmdm1r7vvgg3ifzp8yp9cfyngw07zj";
10 };
11
12 postPatch = ''
13 rm -r tests/__pycache__
14 rm tests/*.pyc
15 '';
16
17 checkInputs = [ pytest pytestrunner pytestcov pytest-flakes pytestpep8 sphinx ];
18
19 checkPhase = ''
20 py.test tests
21 '';
22
23 propagatedBuildInputs = [ six ];
24
25 meta = with lib; {
26 description = "Module with some convenient utilities";
27 homepage = "https://github.com/WoLpH/python-utils";
28 license = licenses.bsd3;
29 };
30}