python313Packages.pyhidra: enable tests

This commit is contained in:
Fabian Affolter
2025-03-22 20:36:16 +01:00
parent f8f303279a
commit cea70513ef
@@ -3,8 +3,9 @@
buildPythonPackage,
fetchFromGitHub,
jpype1,
pytest-datadir,
pytestCheckHook,
setuptools,
wheel,
}:
buildPythonPackage rec {
@@ -23,8 +24,29 @@ buildPythonPackage rec {
dependencies = [ jpype1 ];
nativeCheckInputs = [
pytest-datadir
pytestCheckHook
];
pythonImportsCheck = [ "pyhidra" ];
disabledTests = [
# Tests require a running Ghidra instance
"test_invalid_jpype_keyword_arg"
"test_invalid_vm_arg_succeed"
"test_run_script"
"test_open_program"
"test_no_compiler"
"test_no_language_with_compiler"
"test_loader"
"test_invalid_loader_type"
"test_no_project"
"test_no_program"
"test_import_script"
"test_import_ghidra_base_java_packages"
];
meta = {
description = "Provides direct access to the Ghidra API within a native CPython interpreter using jpype";
homepage = "https://github.com/dod-cyber-crime-center/pyhidra";