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

37 lines
1 KiB
Nix

{
lib,
buildPythonPackage,
fetchPypi,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "pkginfo";
version = "1.10.0";
format = "setuptools";
src = fetchPypi {
inherit pname version;
hash = "sha256-Xfc4NTmNENt5+O7NXNhrH20pMXWJ6nB5aZTUk5mvYpc=";
};
nativeCheckInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "pkginfo" ];
meta = with lib; {
description = "Query metadatdata from sdists, bdists or installed packages";
mainProgram = "pkginfo";
homepage = "https://pythonhosted.org/pkginfo/";
longDescription = ''
This package provides an API for querying the distutils metadata
written in the PKG-INFO file inside a source distriubtion (an sdist)
or a binary distribution (e.g., created by running bdist_egg). It can
also query the EGG-INFO directory of an installed distribution, and the
*.egg-info stored in a development checkout (e.g, created by running
setup.py develop).
'';
license = licenses.mit;
maintainers = with maintainers; [ ];
};
}