depot/third_party/nixpkgs/pkgs/development/python-modules/auditwheel/default.nix
Default email 159e378cbb Project import generated by Copybara.
GitOrigin-RevId: c04d5652cfa9742b1d519688f65d1bbccea9eb7e
2024-09-19 17:19:46 +03:00

72 lines
1.6 KiB
Nix

{
lib,
buildPythonPackage,
pythonOlder,
fetchPypi,
setuptools-scm,
pyelftools,
importlib-metadata,
pretend,
pytestCheckHook,
# non-python dependencies
bzip2,
gnutar,
patchelf,
unzip,
}:
buildPythonPackage rec {
pname = "auditwheel";
version = "6.1.0";
pyproject = true;
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
hash = "sha256-O9xobndM+eNV6SSw/lpWLVXKo4XXIjT/57gbN426Ng8=";
};
build-system = [ setuptools-scm ];
dependencies = [ pyelftools ] ++ lib.optionals (pythonOlder "3.8") [ importlib-metadata ];
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 = with lib; {
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 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 maintainers; [ davhau ];
platforms = platforms.linux;
};
}