python3.pkgs.pyelftools: skip tests on non-glibc targets

pyelftools ships a readelf binary for its test suite that is linked
against glibc. Replacing this readelf binary with our stdenv version
doesn't work.
This commit is contained in:
Yureka
2022-08-13 16:28:59 +02:00
parent 51c62063e3
commit a67c5f82c0
@@ -20,7 +20,7 @@ buildPythonPackage rec {
hash = "sha256-+T5C0ah2oj5E8fWaQbuzYRVgD5bSiUbaArrlxNLojvw=";
};
doCheck = stdenv.hostPlatform.system == "x86_64-linux";
doCheck = stdenv.hostPlatform.system == "x86_64-linux" && stdenv.hostPlatform.isGnu;
checkPhase = ''
patchelf --set-interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" test/external_tools/readelf