python3Packages.pyghidra: init at 3.0.2 (#497507)

This commit is contained in:
Fabian Affolter
2026-03-07 10:26:07 +00:00
committed by GitHub
2 changed files with 62 additions and 0 deletions
@@ -0,0 +1,60 @@
{
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
View File
@@ -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 { };