1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 nose3, 6 pythonOlder, 7 pythonRelaxDepsHook, 8 semver, 9}: 10 11buildPythonPackage rec { 12 pname = "pkutils"; 13 version = "3.0.2"; 14 format = "setuptools"; 15 16 disabled = pythonOlder "3.6"; 17 18 src = fetchFromGitHub { 19 owner = "reubano"; 20 repo = "pkutils"; 21 rev = "refs/tags/v${version}"; 22 hash = "sha256-AK+xX+LPz6IVLZedsqMUm7G28ue0s3pXgIzxS4EHHLE="; 23 }; 24 25 pythonRelaxDeps = [ "semver" ]; 26 27 nativeBuildInputs = [ pythonRelaxDepsHook ]; 28 29 propagatedBuildInputs = [ semver ]; 30 31 nativeCheckInputs = [ nose3 ]; 32 33 checkPhase = '' 34 runHook preCheck 35 nosetests 36 runHook postCheck 37 ''; 38 39 pythonImportsCheck = [ "pkutils" ]; 40 41 meta = with lib; { 42 description = "A Python packaging utility library"; 43 homepage = "https://github.com/reubano/pkutils/"; 44 license = licenses.mit; 45 maintainers = with maintainers; [ drewrisinger ]; 46 }; 47}