From 355ad3b1e1891c6523c1e2b057666e1677618541 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sun, 9 Mar 2025 00:38:03 +0100 Subject: [PATCH] python313Packages.unicorn: refactor --- .../python-modules/unicorn/default.nix | 22 +++++++++++-------- 1 file changed, 13 insertions(+), 9 deletions(-) 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" ];