python313Packages.pkginfo2: refactor (#411883)
This commit is contained in:
@@ -3,32 +3,38 @@
|
|||||||
buildPythonPackage,
|
buildPythonPackage,
|
||||||
fetchFromGitHub,
|
fetchFromGitHub,
|
||||||
pytestCheckHook,
|
pytestCheckHook,
|
||||||
pythonOlder,
|
setuptools,
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "pkginfo2";
|
pname = "pkginfo2";
|
||||||
version = "30.0.0";
|
version = "30.0.0";
|
||||||
format = "setuptools";
|
pyproject = true;
|
||||||
|
|
||||||
disabled = pythonOlder "3.7";
|
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "nexB";
|
owner = "nexB";
|
||||||
repo = "pkginfo2";
|
repo = "pkginfo2";
|
||||||
rev = "v${version}";
|
tag = "v${version}";
|
||||||
hash = "sha256-E9EyaN3ncf/34vvvhRe0rwV28VrjqJo79YFgXq2lKWU=";
|
hash = "sha256-E9EyaN3ncf/34vvvhRe0rwV28VrjqJo79YFgXq2lKWU=";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
build-system = [ setuptools ];
|
||||||
|
|
||||||
nativeCheckInputs = [ pytestCheckHook ];
|
nativeCheckInputs = [ pytestCheckHook ];
|
||||||
|
|
||||||
pythonImportsCheck = [ "pkginfo2" ];
|
pythonImportsCheck = [ "pkginfo2" ];
|
||||||
|
|
||||||
|
disabledTests = [
|
||||||
|
# AssertionError
|
||||||
|
"test_ctor_w_path"
|
||||||
|
];
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "Query metadatdata from sdists, bdists or installed packages";
|
description = "Query metadatdata from sdists, bdists or installed packages";
|
||||||
mainProgram = "pkginfo2";
|
|
||||||
homepage = "https://github.com/nexB/pkginfo2";
|
homepage = "https://github.com/nexB/pkginfo2";
|
||||||
|
changelog = "https://github.com/aboutcode-org/pkginfo2/releases/tag/${src.tag}";
|
||||||
license = licenses.mit;
|
license = licenses.mit;
|
||||||
maintainers = with maintainers; [ fab ];
|
maintainers = with maintainers; [ fab ];
|
||||||
|
mainProgram = "pkginfo2";
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user