2020-12-11 14:22:46 +00:00
|
|
|
{ lib, buildPythonPackage, fetchPypi, pytestCheckHook, pytestrunner, pytestcov, pytest-flakes, sphinx, six }:
|
2017-10-21 02:12:01 +01:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2017-11-09 11:26:09 +00:00
|
|
|
pname = "python-utils";
|
2020-05-09 18:50:44 +01:00
|
|
|
version = "2.4.0";
|
2017-10-21 02:12:01 +01:00
|
|
|
|
2019-01-22 14:57:35 +00:00
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-05-09 18:50:44 +01:00
|
|
|
sha256 = "12c0glzkm81ljgf6pwh0d4rmdm1r7vvgg3ifzp8yp9cfyngw07zj";
|
2017-10-21 02:12:01 +01:00
|
|
|
};
|
|
|
|
|
2018-01-12 19:47:40 +00:00
|
|
|
postPatch = ''
|
2019-01-22 15:02:12 +00:00
|
|
|
rm -r tests/__pycache__
|
|
|
|
rm tests/*.pyc
|
2020-12-11 14:22:33 +00:00
|
|
|
substituteInPlace pytest.ini --replace "--pep8" ""
|
2018-01-12 19:47:40 +00:00
|
|
|
'';
|
|
|
|
|
2020-12-11 14:22:46 +00:00
|
|
|
checkInputs = [ pytestCheckHook pytestrunner pytestcov pytest-flakes sphinx ];
|
2017-10-21 02:12:01 +01:00
|
|
|
|
|
|
|
propagatedBuildInputs = [ six ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Module with some convenient utilities";
|
|
|
|
homepage = "https://github.com/WoLpH/python-utils";
|
|
|
|
license = licenses.bsd3;
|
|
|
|
};
|
|
|
|
}
|