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