Loading pkgs/development/python-modules/pyghidra/default.nix 0 → 100644 +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 ]; }; }) pkgs/top-level/python-packages.nix +2 −0 Original line number Diff line number Diff line Loading @@ -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 { }; Loading Loading
pkgs/development/python-modules/pyghidra/default.nix 0 → 100644 +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 ]; }; })
pkgs/top-level/python-packages.nix +2 −0 Original line number Diff line number Diff line Loading @@ -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 { }; Loading