python313Packages.pkginfo2: refactor

This commit is contained in:
Fabian Affolter
2025-05-31 10:42:30 +02:00
parent 5fa46e8fdf
commit 086a0e6554
@@ -3,23 +3,23 @@
buildPythonPackage,
fetchFromGitHub,
pytestCheckHook,
pythonOlder,
setuptools,
}:
buildPythonPackage rec {
pname = "pkginfo2";
version = "30.0.0";
format = "setuptools";
disabled = pythonOlder "3.7";
pyproject = true;
src = fetchFromGitHub {
owner = "nexB";
repo = "pkginfo2";
rev = "v${version}";
tag = "v${version}";
hash = "sha256-E9EyaN3ncf/34vvvhRe0rwV28VrjqJo79YFgXq2lKWU=";
};
build-system = [ setuptools ];
nativeCheckInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "pkginfo2" ];
@@ -31,9 +31,10 @@ buildPythonPackage rec {
meta = with lib; {
description = "Query metadatdata from sdists, bdists or installed packages";
mainProgram = "pkginfo2";
homepage = "https://github.com/nexB/pkginfo2";
changelog = "https://github.com/aboutcode-org/pkginfo2/releases/tag/${src.tag}";
license = licenses.mit;
maintainers = with maintainers; [ fab ];
mainProgram = "pkginfo2";
};
}