at master 879 B view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 pytestCheckHook, 6 setuptools, 7}: 8 9buildPythonPackage rec { 10 pname = "pkginfo2"; 11 version = "30.0.0"; 12 pyproject = true; 13 14 src = fetchFromGitHub { 15 owner = "nexB"; 16 repo = "pkginfo2"; 17 tag = "v${version}"; 18 hash = "sha256-E9EyaN3ncf/34vvvhRe0rwV28VrjqJo79YFgXq2lKWU="; 19 }; 20 21 build-system = [ setuptools ]; 22 23 nativeCheckInputs = [ pytestCheckHook ]; 24 25 pythonImportsCheck = [ "pkginfo2" ]; 26 27 disabledTests = [ 28 # AssertionError 29 "test_ctor_w_path" 30 ]; 31 32 meta = with lib; { 33 description = "Query metadatdata from sdists, bdists or installed packages"; 34 homepage = "https://github.com/nexB/pkginfo2"; 35 changelog = "https://github.com/aboutcode-org/pkginfo2/releases/tag/${src.tag}"; 36 license = licenses.mit; 37 maintainers = with maintainers; [ fab ]; 38 mainProgram = "pkginfo2"; 39 }; 40}