From eb1aed2a74a06d9aa00fe39c841b454582013b34 Mon Sep 17 00:00:00 2001 From: Robert Scott Date: Sun, 14 Nov 2021 17:24:38 +0000 Subject: [PATCH] python3Packages.unicorn: fix build on aarch64 --- .../development/python-modules/unicorn/default.nix | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/pkgs/development/python-modules/unicorn/default.nix b/pkgs/development/python-modules/unicorn/default.nix index 14988bde2869..1f2876bdc693 100644 --- a/pkgs/development/python-modules/unicorn/default.nix +++ b/pkgs/development/python-modules/unicorn/default.nix @@ -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/";