python313Packages.jfx-bridge: refactor

This commit is contained in:
Fabian Affolter
2025-03-22 20:36:15 +01:00
parent 9721e398a4
commit 38b3aba4b1
@@ -3,8 +3,8 @@
buildPythonPackage,
fetchFromGitHub,
pytestCheckHook,
python,
setuptools,
wheel,
}:
buildPythonPackage rec {
@@ -20,16 +20,17 @@ buildPythonPackage rec {
};
patches = [ ./no-invoke-git.patch ];
postPatch = ''
substituteInPlace ./setup.py --subst-var-by version ${version}
'';
build-system = [ setuptools ];
doCheck = true;
nativeCheckInputs = [ pytestCheckHook ];
preCheck = ''
python test_bridge_server.py &
${python.interpreter} test_bridge_server.py &
'';
disabledTests = [
@@ -42,8 +43,9 @@ buildPythonPackage rec {
pythonImportsCheck = [ "jfx_bridge" ];
meta = {
description = "Base Python2/3 RPC bridge used for ghidra_bridge";
description = "Base Python RPC bridge used for ghidra_bridge";
homepage = "https://github.com/justfoxing/jfx_bridge";
changelog = "https://github.com/justfoxing/jfx_bridge/releases/tag/${src.tag}";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ scoder12 ];
};