1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, pytestCheckHook 5, six 6}: 7 8buildPythonPackage rec { 9 pname = "python-utils"; 10 version = "2.5.6"; 11 12 src = fetchFromGitHub { 13 owner = "WoLpH"; 14 repo = pname; 15 rev = "v${version}"; 16 sha256 = "0gd2jana5w6bn7z58di4a8dwcxvc8rx282jawbw7ws7qm2a5klz3"; 17 }; 18 19 # disable coverage and linting 20 postPatch = '' 21 sed -i '/--cov/d' pytest.ini 22 sed -i '/--flake8/d' pytest.ini 23 ''; 24 25 propagatedBuildInputs = [ 26 six 27 ]; 28 29 checkInputs = [ 30 pytestCheckHook 31 ]; 32 33 pytestFlagsArray = [ 34 "_python_utils_tests" 35 ]; 36 37 meta = with lib; { 38 description = "Module with some convenient utilities"; 39 homepage = "https://github.com/WoLpH/python-utils"; 40 license = licenses.bsd3; 41 }; 42}