nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 72 lines 1.5 kB view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchPypi, 5 setuptools-scm, 6 pyelftools, 7 packaging, 8 pretend, 9 pytestCheckHook, 10 # non-python dependencies 11 bzip2, 12 gnutar, 13 patchelf, 14 unzip, 15}: 16 17buildPythonPackage rec { 18 pname = "auditwheel"; 19 version = "6.6.0"; 20 pyproject = true; 21 22 src = fetchPypi { 23 inherit pname version; 24 hash = "sha256-J387MVrQsE3wor4tEmw/05kwvCZd8PlYnXjJcP8G9Ss="; 25 }; 26 27 build-system = [ setuptools-scm ]; 28 29 dependencies = [ 30 packaging 31 pyelftools 32 ]; 33 34 nativeCheckInputs = [ 35 pretend 36 pytestCheckHook 37 ]; 38 39 # Integration tests require docker and networking 40 disabledTestPaths = [ "tests/integration" ]; 41 42 # Ensure that there are no undeclared deps 43 postCheck = '' 44 PATH= PYTHONPATH= $out/bin/auditwheel --version > /dev/null 45 ''; 46 47 makeWrapperArgs = [ 48 "--prefix" 49 "PATH" 50 ":" 51 (lib.makeBinPath [ 52 bzip2 53 gnutar 54 patchelf 55 unzip 56 ]) 57 ]; 58 59 meta = { 60 changelog = "https://github.com/pypa/auditwheel/blob/${version}/CHANGELOG.md"; 61 description = "Auditing and relabeling cross-distribution Linux wheels"; 62 homepage = "https://github.com/pypa/auditwheel"; 63 license = with lib.licenses; [ 64 mit # auditwheel and nibabel 65 bsd2 # from https://github.com/matthew-brett/delocate 66 bsd3 # from https://sources.gentoo.org/cgi-bin/viewvc.cgi/gentoo-projects/pax-utils/lddtree.py 67 ]; 68 mainProgram = "auditwheel"; 69 maintainers = with lib.maintainers; [ davhau ]; 70 platforms = lib.platforms.linux; 71 }; 72}