blob: da9483a54b5d262ae78488213613454179b31d67 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
|
{
lib,
buildPythonPackage,
fetchPypi,
setuptools,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "pkginfo";
version = "1.12.1.2";
pyproject = true;
src = fetchPypi {
inherit pname version;
hash = "sha256-XNlXgkrDbxQCYJZOujxr5kQqg1m4xI9K35AhDzOgS3s=";
};
build-system = [ setuptools ];
nativeCheckInputs = [ pytestCheckHook ];
disabledTests = [
# wheel metadata version mismatch 2.1 vs 2.2
"test_get_metadata_w_module"
"test_get_metadata_w_package_name"
"test_installed_ctor_w_dist_info"
"test_installed_ctor_w_name"
"test_installed_ctor_w_package"
];
pythonImportsCheck = [ "pkginfo" ];
meta = {
changelog = "https://pypi.org/project/pkginfo/#pkginfo-changelog";
description = "Query metadatdata from sdists, bdists or installed packages";
mainProgram = "pkginfo";
homepage = "https://code.launchpad.net/~tseaver/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 = lib.licenses.mit;
maintainers = with lib.maintainers; [ dotlambda ];
};
}
|