tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
python313Packages.pyhidra: enable tests
Fabian Affolter
10 months ago
cea70513
f8f30327
+23
-1
1 changed file
expand all
collapse all
unified
split
pkgs
development
python-modules
pyhidra
default.nix
+23
-1
pkgs/development/python-modules/pyhidra/default.nix
···
3
3
buildPythonPackage,
4
4
fetchFromGitHub,
5
5
jpype1,
6
6
+
pytest-datadir,
7
7
+
pytestCheckHook,
6
8
setuptools,
7
7
-
wheel,
8
9
}:
9
10
10
11
buildPythonPackage rec {
···
23
24
24
25
dependencies = [ jpype1 ];
25
26
27
27
+
nativeCheckInputs = [
28
28
+
pytest-datadir
29
29
+
pytestCheckHook
30
30
+
];
31
31
+
26
32
pythonImportsCheck = [ "pyhidra" ];
33
33
+
34
34
+
disabledTests = [
35
35
+
# Tests require a running Ghidra instance
36
36
+
"test_invalid_jpype_keyword_arg"
37
37
+
"test_invalid_vm_arg_succeed"
38
38
+
"test_run_script"
39
39
+
"test_open_program"
40
40
+
"test_no_compiler"
41
41
+
"test_no_language_with_compiler"
42
42
+
"test_loader"
43
43
+
"test_invalid_loader_type"
44
44
+
"test_no_project"
45
45
+
"test_no_program"
46
46
+
"test_import_script"
47
47
+
"test_import_ghidra_base_java_packages"
48
48
+
];
27
49
28
50
meta = {
29
51
description = "Provides direct access to the Ghidra API within a native CPython interpreter using jpype";