From efb8296294cb3fe1790b29126e9b144a7aeffb0f Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sat, 22 Mar 2025 20:15:32 +0100 Subject: [PATCH] python313Packages.libbs: enable tests --- .../python-modules/libbs/default.nix | 33 +++++++++++++------ 1 file changed, 23 insertions(+), 10 deletions(-) diff --git a/pkgs/development/python-modules/libbs/default.nix b/pkgs/development/python-modules/libbs/default.nix index a31af467594b..8f004b52fa4e 100644 --- a/pkgs/development/python-modules/libbs/default.nix +++ b/pkgs/development/python-modules/libbs/default.nix @@ -10,10 +10,11 @@ psutil, pycparser, pyhidra, + pytestCheckHook, setuptools, toml, tqdm, - wheel, + writableTmpDirAsHomeHook, }: buildPythonPackage rec { @@ -31,23 +32,35 @@ buildPythonPackage rec { build-system = [ setuptools ]; dependencies = [ - toml - pycparser - prompt-toolkit - tqdm - jfx-bridge - ghidra-bridge - psutil - pyhidra - platformdirs filelock + ghidra-bridge + jfx-bridge + platformdirs + prompt-toolkit + psutil + pycparser + pyhidra + toml + tqdm + ]; + + nativeCheckInputs = [ + pytestCheckHook + writableTmpDirAsHomeHook ]; pythonImportsCheck = [ "libbs" ]; + disabledTests = [ + "test_change_watcher_plugin_cli" + "test_ghidra_artifact_watchers" + "TestHeadlessInterfaces" + ]; + meta = { description = "Library for writing plugins in any decompiler: includes API lifting, common data formatting, and GUI abstraction"; homepage = "https://github.com/binsync/libbs"; + changelog = "https://github.com/binsync/libbs/releases/tag/${src.tag}"; license = lib.licenses.bsd2; maintainers = with lib.maintainers; [ scoder12 ]; };