Files
nixpkgs/pkgs/development/python-modules/python-utils/default.nix
T

43 lines
750 B
Nix
Raw Normal View History

2021-04-15 02:42:30 +02:00
{ lib
, buildPythonPackage
, fetchFromGitHub
, pytestCheckHook
, six
}:
2017-10-21 04:12:01 +03:00
buildPythonPackage rec {
pname = "python-utils";
version = "2.5.6";
2017-10-21 04:12:01 +03:00
2021-04-15 02:42:30 +02:00
src = fetchFromGitHub {
owner = "WoLpH";
repo = pname;
rev = "v${version}";
sha256 = "0gd2jana5w6bn7z58di4a8dwcxvc8rx282jawbw7ws7qm2a5klz3";
2017-10-21 04:12:01 +03:00
};
2021-04-15 02:42:30 +02:00
# disable coverage and linting
2018-01-13 03:47:40 +08:00
postPatch = ''
2021-04-15 02:42:30 +02:00
sed -i '/--cov/d' pytest.ini
sed -i '/--flake8/d' pytest.ini
2018-01-13 03:47:40 +08:00
'';
2021-04-15 02:42:30 +02:00
propagatedBuildInputs = [
six
];
2017-10-21 04:12:01 +03:00
2021-04-15 02:42:30 +02:00
checkInputs = [
pytestCheckHook
];
pytestFlagsArray = [
"_python_utils_tests"
];
2017-10-21 04:12:01 +03:00
meta = with lib; {
description = "Module with some convenient utilities";
homepage = "https://github.com/WoLpH/python-utils";
license = licenses.bsd3;
};
}