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