Unverified Commit 41b06640 authored by Fabian Affolter's avatar Fabian Affolter Committed by GitHub
Browse files

python3Packages.pyghidra: init at 3.0.2 (#497507)

parents 7c35fc81 5985065f
Loading
Loading
Loading
Loading
+60 −0
Original line number Diff line number Diff line
{
  lib,
  buildPythonPackage,
  fetchPypi,
  jpype1,
  packaging,
  pytest-datadir,
  pytestCheckHook,
  setuptools,
}:

buildPythonPackage (finalAttrs: {
  pname = "pyghidra";
  version = "3.0.2";
  pyproject = true;

  src = fetchPypi {
    inherit (finalAttrs) pname version;
    hash = "sha256-ea1P1XHjLzQ88/zb2E/G4zPvGiZHWjqPcrYpqfPIedo=";
  };

  pythonRelaxDeps = [ "jpype1" ];

  build-system = [ setuptools ];

  dependencies = [
    jpype1
    packaging
  ];

  nativeCheckInputs = [
    pytestCheckHook
    pytest-datadir
  ];

  pythonImportsCheck = [ "pyghidra" ];

  disabledTests = [
    # Tests require a Ghidra instance
    "test_import_ghidra_base_java_packages"
    "test_import_script"
    "test_invalid_jpype_keyword_arg"
    "test_invalid_loader_type"
    "test_invalid_vm_arg_succeed"
    "test_loader"
    "test_no_compiler"
    "test_no_language_with_compiler"
    "test_no_program"
    "test_no_project"
    "test_open_program"
    "test_run_script"
  ];

  meta = {
    description = "Native CPython for Ghidra";
    homepage = "https://pypi.org/project/pyghidra";
    license = lib.licenses.asl20;
    maintainers = with lib.maintainers; [ fab ];
  };
})
+2 −0
Original line number Diff line number Diff line
@@ -13724,6 +13724,8 @@ self: super: with self; {
  pygetwindow = callPackage ../development/python-modules/pygetwindow { };
  pyghidra = callPackage ../development/python-modules/pyghidra { };
  pyghmi = callPackage ../development/python-modules/pyghmi { };
  pygit2 = callPackage ../development/python-modules/pygit2 { };