diff options
author | github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> | 2021-05-13 12:26:48 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-05-13 12:26:48 +0000 |
commit | 74655944285aadf77fd7b36612b39fd5df411338 (patch) | |
tree | 3b0282a20142314aea2caad184e722463182a096 /pkgs/tools/package-management | |
parent | e59f22faf5cf959320ae8159a13b873c04de591a (diff) | |
parent | 5687a345be5806c3ba6fc3ca33b38525f28c905a (diff) | |
download | nixlib-74655944285aadf77fd7b36612b39fd5df411338.tar nixlib-74655944285aadf77fd7b36612b39fd5df411338.tar.gz nixlib-74655944285aadf77fd7b36612b39fd5df411338.tar.bz2 nixlib-74655944285aadf77fd7b36612b39fd5df411338.tar.lz nixlib-74655944285aadf77fd7b36612b39fd5df411338.tar.xz nixlib-74655944285aadf77fd7b36612b39fd5df411338.tar.zst nixlib-74655944285aadf77fd7b36612b39fd5df411338.zip |
Merge master into staging-next
Diffstat (limited to 'pkgs/tools/package-management')
-rw-r--r-- | pkgs/tools/package-management/auditwheel/default.nix | 56 |
1 files changed, 56 insertions, 0 deletions
diff --git a/pkgs/tools/package-management/auditwheel/default.nix b/pkgs/tools/package-management/auditwheel/default.nix new file mode 100644 index 000000000000..7c633698e389 --- /dev/null +++ b/pkgs/tools/package-management/auditwheel/default.nix @@ -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 ]; + }; +} |