python313Packages.unicorn: refactor

This commit is contained in:
Fabian Affolter 2025-03-09 00:38:03 +01:00 committed by Robert Scott
parent b52a2edf37
commit 355ad3b1e1

View File

@ -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" ];