blob: bc897e98f0845fc5f519243dc44a4634e064a127 (
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
|
{
lib,
buildPythonPackage,
fetchPypi,
setuptools-scm,
pyelftools,
packaging,
pretend,
pytestCheckHook,
# non-python dependencies
bzip2,
gnutar,
patchelf,
unzip,
}:
buildPythonPackage rec {
pname = "auditwheel";
version = "6.6.0";
pyproject = true;
src = fetchPypi {
inherit pname version;
hash = "sha256-J387MVrQsE3wor4tEmw/05kwvCZd8PlYnXjJcP8G9Ss=";
};
build-system = [ setuptools-scm ];
dependencies = [
packaging
pyelftools
];
nativeCheckInputs = [
pretend
pytestCheckHook
];
# Integration tests require docker and networking
disabledTestPaths = [ "tests/integration" ];
# Ensure that there are no undeclared deps
postCheck = ''
PATH= PYTHONPATH= $out/bin/auditwheel --version > /dev/null
'';
makeWrapperArgs = [
"--prefix"
"PATH"
":"
(lib.makeBinPath [
bzip2
gnutar
patchelf
unzip
])
];
meta = {
changelog = "https://github.com/pypa/auditwheel/blob/${version}/CHANGELOG.md";
description = "Auditing and relabeling cross-distribution Linux wheels";
homepage = "https://github.com/pypa/auditwheel";
license = with lib.licenses; [
mit # auditwheel and nibabel
bsd2 # from https://github.com/matthew-brett/delocate
bsd3 # from https://sources.gentoo.org/cgi-bin/viewvc.cgi/gentoo-projects/pax-utils/lddtree.py
];
mainProgram = "auditwheel";
maintainers = with lib.maintainers; [ davhau ];
platforms = lib.platforms.linux;
};
}
|