2017-10-21 03:12:01 +02:00
|
|
|
{ lib, buildPythonPackage, fetchFromGitHub, pytest, pytestrunner, pytestcov, pytestflakes, pytestpep8, sphinx, six }:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2017-11-09 12:26:09 +01:00
|
|
|
pname = "python-utils";
|
2018-10-24 06:45:10 +02:00
|
|
|
version = "2.3.0";
|
2017-11-09 12:26:09 +01:00
|
|
|
name = pname + "-" + version;
|
2017-10-21 03:12:01 +02:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "WoLpH";
|
|
|
|
repo = "python-utils";
|
|
|
|
rev = "v${version}";
|
2018-10-24 06:45:10 +02:00
|
|
|
sha256 = "14gyphcqwa77wfbnrzj363v3fdkxy08378lgd7l3jqnpvr8pfp5c";
|
2017-10-21 03:12:01 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
checkInputs = [ pytest pytestrunner pytestcov pytestflakes pytestpep8 sphinx ];
|
|
|
|
|
2018-01-12 20:47:40 +01: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 03:12:01 +02: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;
|
|
|
|
};
|
|
|
|
}
|