9405df4a82
GitOrigin-RevId: 8e4fe32876ca15e3d5eb3ecd3ca0b224417f5f17
42 lines
750 B
Nix
42 lines
750 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, pytestCheckHook
|
|
, six
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "python-utils";
|
|
version = "2.5.6";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "WoLpH";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
sha256 = "0gd2jana5w6bn7z58di4a8dwcxvc8rx282jawbw7ws7qm2a5klz3";
|
|
};
|
|
|
|
# disable coverage and linting
|
|
postPatch = ''
|
|
sed -i '/--cov/d' pytest.ini
|
|
sed -i '/--flake8/d' pytest.ini
|
|
'';
|
|
|
|
propagatedBuildInputs = [
|
|
six
|
|
];
|
|
|
|
checkInputs = [
|
|
pytestCheckHook
|
|
];
|
|
|
|
pytestFlagsArray = [
|
|
"_python_utils_tests"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Module with some convenient utilities";
|
|
homepage = "https://github.com/WoLpH/python-utils";
|
|
license = licenses.bsd3;
|
|
};
|
|
}
|