unicorn: 2.1.1 -> 2.1.3 (#381926)

This commit is contained in:
Robert Scott
2025-03-13 22:50:44 +00:00
committed by GitHub
2 changed files with 15 additions and 11 deletions
@@ -10,13 +10,13 @@
stdenv.mkDerivation rec {
pname = "unicorn";
version = "2.1.1";
version = "2.1.3";
src = fetchFromGitHub {
owner = "unicorn-engine";
repo = "unicorn";
tag = version;
hash = "sha256-ZlQ2WVTToT0OMxK6brsHnchxDwAR5n1wdtZtkTTgWV4=";
hash = "sha256-vBggblml+lQFhyNrfIp5GKVQ09fd+ccblKHEzWteMbI=";
};
nativeBuildInputs =
@@ -2,6 +2,9 @@
lib,
stdenv,
buildPythonPackage,
capstone,
pytestCheckHook,
setuptools-scm,
setuptools,
unicorn,
}:
@@ -32,17 +35,18 @@ buildPythonPackage rec {
"macosx_11_0"
];
build-system = [ setuptools ];
build-system = [
setuptools
setuptools-scm
];
checkPhase = ''
runHook preCheck
nativeCheckInputs = [
capstone
pytestCheckHook
];
mv unicorn unicorn.hidden
patchShebangs sample_*.py shellcode.py
sh -e sample_all.sh
runHook postCheck
'';
# this test does not appear to be intended as a pytest-style test
disabledTests = [ "test_i386" ];
pythonImportsCheck = [ "unicorn" ];