1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, pytestCheckHook 5, pythonOlder 6}: 7 8buildPythonPackage rec { 9 pname = "pkginfo2"; 10 version = "30.0.0"; 11 12 disabled = pythonOlder "3.7"; 13 14 src = fetchFromGitHub { 15 owner = "nexB"; 16 repo = "pkginfo2"; 17 rev = "v${version}"; 18 hash = "sha256-E9EyaN3ncf/34vvvhRe0rwV28VrjqJo79YFgXq2lKWU="; 19 }; 20 21 nativeCheckInputs = [ 22 pytestCheckHook 23 ]; 24 25 pythonImportsCheck = [ 26 "pkginfo2" 27 ]; 28 29 meta = with lib; { 30 description = "Query metadatdata from sdists, bdists or installed packages"; 31 homepage = "https://github.com/nexB/pkginfo2"; 32 license = licenses.mit; 33 maintainers = with maintainers; [ fab ]; 34 }; 35}