1{ lib, buildPythonPackage, fetchPypi, pytest, pytestrunner, pytestcov, pytest-flakes, pytestpep8, sphinx, six }:
2
3buildPythonPackage rec {
4 pname = "python-utils";
5 version = "2.3.0";
6
7 src = fetchPypi {
8 inherit pname version;
9 sha256 = "34aaf26b39b0b86628008f2ae0ac001b30e7986a8d303b61e1357dfcdad4f6d3";
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}