python3Packages.unicorn: fix build on aarch64

This commit is contained in:
Robert Scott
2021-11-17 21:09:59 +00:00
parent c27291414f
commit eb1aed2a74
@@ -19,17 +19,13 @@ buildPythonPackage rec {
ln -s ${unicorn-emu}/lib/libunicorn.a prebuilt/
'';
# needed on non-x86 linux
setupPyBuildFlags = lib.optionals stdenv.isLinux [ "--plat-name" "linux" ];
propagatedBuildInputs = [
setuptools
];
# No tests present
doCheck = false;
pythonImportsCheck = [
"unicorn"
];
checkPhase = ''
runHook preCheck
@@ -40,6 +36,10 @@ buildPythonPackage rec {
runHook postCheck
'';
pythonImportsCheck = [
"unicorn"
];
meta = with lib; {
description = "Python bindings for Unicorn CPU emulator engine";
homepage = "https://www.unicorn-engine.org/";