mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-03-08 01:24:09 +01:00
python3Packages.pyghidra: init at 3.0.2
Native CPython for Ghidra https://pypi.org/project/pyghidra
This commit is contained in:
parent
db952ffcd6
commit
5985065f6d
2 changed files with 62 additions and 0 deletions
60
pkgs/development/python-modules/pyghidra/default.nix
Normal file
60
pkgs/development/python-modules/pyghidra/default.nix
Normal file
|
|
@ -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 ];
|
||||
};
|
||||
})
|
||||
|
|
@ -13722,6 +13722,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 { };
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue