diff --git a/pkgs/development/python-modules/unicorn/default.nix b/pkgs/development/python-modules/unicorn/default.nix index b1b630c237da..1f0fba4be262 100644 --- a/pkgs/development/python-modules/unicorn/default.nix +++ b/pkgs/development/python-modules/unicorn/default.nix @@ -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" ];