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