gdbgui: modernize and migrate to pyproject (#526789)

This commit is contained in:
Yohann Boniface
2026-06-14 13:32:24 +00:00
committed by GitHub
+19 -16
View File
@@ -5,15 +5,29 @@
gdb,
}:
python3Packages.buildPythonApplication rec {
python3Packages.buildPythonApplication (finalAttrs: {
pname = "gdbgui";
version = "0.15.3.0";
format = "setuptools";
pyproject = true;
__structuredAttrs = true;
src = fetchPypi {
inherit (finalAttrs) pname version;
hash = "sha256-/HyFE0JnoN03CDyCQCo/Y9RyH4YOMoeB7khReIb8t7Y=";
};
postPatch = ''
echo ${finalAttrs.version} > gdbgui/VERSION.txt
# relax version requirements
sed -i 's/==.*$//' requirements.txt
'';
build-system = with python3Packages; [ setuptools ];
buildInputs = [ gdb ];
propagatedBuildInputs = with python3Packages; [
dependencies = with python3Packages; [
eventlet
flask-compress
flask-socketio
@@ -21,17 +35,6 @@ python3Packages.buildPythonApplication rec {
pygments
];
src = fetchPypi {
inherit pname version;
hash = "sha256-/HyFE0JnoN03CDyCQCo/Y9RyH4YOMoeB7khReIb8t7Y=";
};
postPatch = ''
echo ${version} > gdbgui/VERSION.txt
# relax version requirements
sed -i 's/==.*$//' requirements.txt
'';
postInstall = ''
wrapProgram $out/bin/gdbgui \
--prefix PATH : ${lib.makeBinPath [ gdb ]}
@@ -51,4 +54,4 @@ python3Packages.buildPythonApplication rec {
dump_stack
];
};
}
})