auditwheel: init at 4.0.0 (#122607)

This commit is contained in:
DavHau 2021-05-13 18:44:08 +07:00 committed by GitHub
parent 82da72a8e1
commit 0b14ea44a6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 58 additions and 0 deletions

View file

@ -0,0 +1,56 @@
{ lib
, bzip2
, patchelf
, python3
, gnutar
, unzip
}:
python3.pkgs.buildPythonApplication rec {
pname = "auditwheel";
version = "4.0.0";
disabled = python3.pkgs.pythonOlder "3.6";
src = python3.pkgs.fetchPypi {
inherit pname version;
sha256 = "03a079fe273f42336acdb5953ff5ce7578f93ca6a832b16c835fe337a1e2bd4a";
};
nativeBuildInputs = with python3.pkgs; [
pbr
];
propagatedBuildInputs = with python3.pkgs; [
pyelftools
setuptools
];
# integration tests require docker and networking
disabledTestPaths = [ "tests/integration" ];
checkInputs = with python3.pkgs; [
pretend
pytestCheckHook
];
# 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 = with lib; {
description = "Auditing and relabeling cross-distribution Linux wheels";
homepage = "https://github.com/pypa/auditwheel";
license = with 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
];
maintainers = with maintainers; [ davhau ];
};
}

View file

@ -806,6 +806,8 @@ in
albert = libsForQt5.callPackage ../applications/misc/albert {};
auditwheel = callPackage ../tools/package-management/auditwheel { };
gobgp = callPackage ../tools/networking/gobgp { };
metapixel = callPackage ../tools/graphics/metapixel { };