Merge pull request #248385 from tjni/angrcli

python3.pkgs.angrcli: disable x86 tests on non-x86 architectures
This commit is contained in:
OTABI Tomoya 2023-08-12 21:23:37 +09:00 committed by GitHub
commit 054660bb0d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -24,6 +24,11 @@ buildPythonPackage rec {
hash = "sha256-a5ajUBQwt3xUNkeSOeGOAFf47wd4UVk+LcuAHGqbq4s=";
};
postPatch = ''
substituteInPlace tests/test_derefs.py \
--replace "/bin/ls" "${coreutils}/bin/ls"
'';
propagatedBuildInputs = [
angr
cmd2
@ -35,17 +40,18 @@ buildPythonPackage rec {
pytestCheckHook
];
postPatch = ''
substituteInPlace tests/test_derefs.py \
--replace "/bin/ls" "${coreutils}/bin/ls"
'';
disabledTests = lib.optionals (!stdenv.hostPlatform.isx86) [
# expects the x86 register "rax" to exist
"test_cc"
"test_loop"
"test_max_depth"
];
pythonImportsCheck = [
"angrcli"
];
meta = with lib; {
broken = (stdenv.isLinux && stdenv.isAarch64);
description = "Python modules to allow easier interactive use of angr";
homepage = "https://github.com/fmagin/angr-cli";
license = with licenses; [ mit ];