1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 jfx-bridge,
6 setuptools,
7}:
8
9buildPythonPackage rec {
10 pname = "ghidra-bridge";
11 version = "1.0.0";
12 pyproject = true;
13
14 src = fetchFromGitHub {
15 owner = "justfoxing";
16 repo = "ghidra_bridge";
17 tag = version;
18 hash = "sha256-VcAl1tamsuHvZRtBP0+DCl2A9d7E6aoj2AbJhEcBNMM=";
19 };
20
21 patches = [ ./no-invoke-git.patch ];
22
23 postPatch = ''
24 substituteInPlace ./setup.py --subst-var-by version ${version}
25 '';
26
27 build-system = [ setuptools ];
28
29 dependencies = [ jfx-bridge ];
30
31 # Tests require a running server instance
32 doCheck = false;
33
34 pythonImportsCheck = [ "ghidra_bridge" ];
35
36 meta = {
37 description = "Python bridge to Ghidra's Python scripting";
38 homepage = "https://github.com/justfoxing/ghidra_bridge";
39 changelog = "https://github.com/justfoxing/ghidra_bridge/releases/tag/${src.tag}";
40 license = lib.licenses.mit;
41 maintainers = with lib.maintainers; [ scoder12 ];
42 };
43}