depot/third_party/nixpkgs/pkgs/development/python-modules/pkginfo2/default.nix
Default email fa5436e0a7 Project import generated by Copybara.
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
2024-06-05 17:53:02 +02:00

34 lines
729 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
pytestCheckHook,
pythonOlder,
}:
buildPythonPackage rec {
pname = "pkginfo2";
version = "30.0.0";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "nexB";
repo = "pkginfo2";
rev = "v${version}";
hash = "sha256-E9EyaN3ncf/34vvvhRe0rwV28VrjqJo79YFgXq2lKWU=";
};
nativeCheckInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "pkginfo2" ];
meta = with lib; {
description = "Query metadatdata from sdists, bdists or installed packages";
mainProgram = "pkginfo2";
homepage = "https://github.com/nexB/pkginfo2";
license = licenses.mit;
maintainers = with maintainers; [ fab ];
};
}