1{ lib
2, buildPythonPackage
3, fetchPypi
4, pytestCheckHook
5}:
6
7buildPythonPackage rec {
8 pname = "pkginfo";
9 version = "1.9.6";
10 format = "setuptools";
11
12 src = fetchPypi {
13 inherit pname version;
14 hash = "sha256-j9WJbocYpDcvDqnMnZb2QXybmG4jpNEW3aJrYswp0EY=";
15 };
16
17 nativeCheckInputs = [
18 pytestCheckHook
19 ];
20
21 pythonImportsCheck = [
22 "pkginfo"
23 ];
24
25 meta = with lib; {
26 description = "Query metadatdata from sdists, bdists or installed packages";
27 homepage = "https://pythonhosted.org/pkginfo/";
28 longDescription = ''
29 This package provides an API for querying the distutils metadata
30 written in the PKG-INFO file inside a source distriubtion (an sdist)
31 or a binary distribution (e.g., created by running bdist_egg). It can
32 also query the EGG-INFO directory of an installed distribution, and the
33 *.egg-info stored in a “development checkout” (e.g, created by running
34 setup.py develop).
35 '';
36 license = licenses.mit;
37 maintainers = with maintainers; [ ];
38 };
39}