python313Packages.pyhidra: enable tests

+23 -1
+23 -1
pkgs/development/python-modules/pyhidra/default.nix
··· 3 buildPythonPackage, 4 fetchFromGitHub, 5 jpype1, 6 setuptools, 7 - wheel, 8 }: 9 10 buildPythonPackage rec { ··· 23 24 dependencies = [ jpype1 ]; 25 26 pythonImportsCheck = [ "pyhidra" ]; 27 28 meta = { 29 description = "Provides direct access to the Ghidra API within a native CPython interpreter using jpype";
··· 3 buildPythonPackage, 4 fetchFromGitHub, 5 jpype1, 6 + pytest-datadir, 7 + pytestCheckHook, 8 setuptools, 9 }: 10 11 buildPythonPackage rec { ··· 24 25 dependencies = [ jpype1 ]; 26 27 + nativeCheckInputs = [ 28 + pytest-datadir 29 + pytestCheckHook 30 + ]; 31 + 32 pythonImportsCheck = [ "pyhidra" ]; 33 + 34 + disabledTests = [ 35 + # Tests require a running Ghidra instance 36 + "test_invalid_jpype_keyword_arg" 37 + "test_invalid_vm_arg_succeed" 38 + "test_run_script" 39 + "test_open_program" 40 + "test_no_compiler" 41 + "test_no_language_with_compiler" 42 + "test_loader" 43 + "test_invalid_loader_type" 44 + "test_no_project" 45 + "test_no_program" 46 + "test_import_script" 47 + "test_import_ghidra_base_java_packages" 48 + ]; 49 50 meta = { 51 description = "Provides direct access to the Ghidra API within a native CPython interpreter using jpype";