2019-01-22 14:57:35 +00:00
|
|
|
{ lib, buildPythonPackage, fetchPypi, pytest, pytestrunner, pytestcov, pytestflakes, pytestpep8, sphinx, six }:
|
2017-10-21 02:12:01 +01:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2017-11-09 11:26:09 +00:00
|
|
|
pname = "python-utils";
|
2018-10-24 05:45:10 +01:00
|
|
|
version = "2.3.0";
|
2017-10-21 02:12:01 +01:00
|
|
|
|
2019-01-22 14:57:35 +00:00
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
|
|
|
sha256 = "34aaf26b39b0b86628008f2ae0ac001b30e7986a8d303b61e1357dfcdad4f6d3";
|
2017-10-21 02:12:01 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
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 02:12:01 +01: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;
|
|
|
|
};
|
|
|
|
}
|