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