diff --git a/pkgs/development/libraries/unicorn/default.nix b/pkgs/development/libraries/unicorn/default.nix index 77947d5756b7..e9977ff75160 100644 --- a/pkgs/development/libraries/unicorn/default.nix +++ b/pkgs/development/libraries/unicorn/default.nix @@ -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 = 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" ];