2017-10-21 01:12:01 +00:00
|
|
|
{ lib, buildPythonPackage, fetchFromGitHub, pytest, pytestrunner, pytestcov, pytestflakes, pytestpep8, sphinx, six }:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2017-11-09 11:26:09 +00:00
|
|
|
pname = "python-utils";
|
2017-10-21 01:12:01 +00:00
|
|
|
version = "2.2.0";
|
2017-11-09 11:26:09 +00:00
|
|
|
name = pname + "-" + version;
|
2017-10-21 01:12:01 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "WoLpH";
|
|
|
|
repo = "python-utils";
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "1i3q9frai08nvrcmh4dg4rr0grncm68w2c097z5g1mfwdf9sv7df";
|
|
|
|
};
|
|
|
|
|
|
|
|
checkInputs = [ pytest pytestrunner pytestcov pytestflakes pytestpep8 sphinx ];
|
|
|
|
|
2018-01-12 19:47:40 +00:00
|
|
|
postPatch = ''
|
|
|
|
# pytest-runner is only actually required in checkPhase
|
|
|
|
substituteInPlace setup.py --replace "setup_requires=['pytest-runner']," ""
|
|
|
|
'';
|
|
|
|
|
|
|
|
# Tests failing
|
|
|
|
doCheck = false;
|
|
|
|
|
2017-10-21 01:12:01 +00:00
|
|
|
checkPhase = ''
|
|
|
|
py.test
|
|
|
|
'';
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ six ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Module with some convenient utilities";
|
|
|
|
homepage = "https://github.com/WoLpH/python-utils";
|
|
|
|
license = licenses.bsd3;
|
|
|
|
};
|
|
|
|
}
|