Commit cea70513 authored by Fabian Affolter's avatar Fabian Affolter
Browse files

python313Packages.pyhidra: enable tests

parent f8f30327
Loading
Loading
Loading
Loading
+23 −1
Original line number Diff line number Diff line
@@ -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";