diff --git a/pkgs/development/tools/misc/gdbgui/default.nix b/pkgs/development/tools/misc/gdbgui/default.nix index a64c37640a15..ae7e1b01cbe6 100644 --- a/pkgs/development/tools/misc/gdbgui/default.nix +++ b/pkgs/development/tools/misc/gdbgui/default.nix @@ -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 ]; }; -} +})