Unverified Commit 2ee8bbe8 authored by Robert Scott's avatar Robert Scott Committed by GitHub
Browse files

unicorn: 2.1.1 -> 2.1.3 (#381926)

parents 160631f1 355ad3b1
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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 =
+13 −9
Original line number Diff line number Diff line
@@ -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 ];

  checkPhase = ''
    runHook preCheck
  build-system = [
    setuptools
    setuptools-scm
  ];

    mv unicorn unicorn.hidden
    patchShebangs sample_*.py shellcode.py
    sh -e sample_all.sh
  nativeCheckInputs = [
    capstone
    pytestCheckHook
  ];

    runHook postCheck
  '';
  # this test does not appear to be intended as a pytest-style test
  disabledTests = [ "test_i386" ];

  pythonImportsCheck = [ "unicorn" ];