2020-12-11 06:22:46 -08:00
|
|
|
{ lib, buildPythonPackage, fetchPypi, pytestCheckHook, pytestrunner, pytestcov, pytest-flakes, sphinx, six }:
|
2017-10-20 18:12:01 -07:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2017-11-09 03:26:09 -08:00
|
|
|
pname = "python-utils";
|
2021-03-24 02:28:25 -07:00
|
|
|
version = "2.5.6";
|
2017-10-20 18:12:01 -07:00
|
|
|
|
2019-01-22 06:57:35 -08:00
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-03-24 02:28:25 -07:00
|
|
|
sha256 = "352d5b1febeebf9b3cdb9f3c87a3b26ef22d3c9e274a8ec1e7048ecd2fac4349";
|
2017-10-20 18:12:01 -07:00
|
|
|
};
|
|
|
|
|
2018-01-12 11:47:40 -08:00
|
|
|
postPatch = ''
|
2019-01-22 07:02:12 -08:00
|
|
|
rm -r tests/__pycache__
|
|
|
|
rm tests/*.pyc
|
2020-12-11 06:22:33 -08:00
|
|
|
substituteInPlace pytest.ini --replace "--pep8" ""
|
2018-01-12 11:47:40 -08:00
|
|
|
'';
|
|
|
|
|
2020-12-11 06:22:46 -08:00
|
|
|
checkInputs = [ pytestCheckHook pytestrunner pytestcov pytest-flakes sphinx ];
|
2017-10-20 18:12:01 -07:00
|
|
|
|
|
|
|
propagatedBuildInputs = [ six ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Module with some convenient utilities";
|
|
|
|
homepage = "https://github.com/WoLpH/python-utils";
|
|
|
|
license = licenses.bsd3;
|
|
|
|
};
|
|
|
|
}
|