From af9e231e168ba2dfc71bc74763261730ef30e8cd Mon Sep 17 00:00:00 2001 From: Steve Purcell Date: Mon, 20 Oct 2025 12:44:21 +0100 Subject: [PATCH] watchgha: init at 2.4.2 This adds a new package for watchgha, which provides a small TUI utility for watching the current state of all GitHub Actions runs for a branch or repo. --- pkgs/by-name/wa/watchgha/package.nix | 44 ++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 pkgs/by-name/wa/watchgha/package.nix diff --git a/pkgs/by-name/wa/watchgha/package.nix b/pkgs/by-name/wa/watchgha/package.nix new file mode 100644 index 000000000000..ac87868e3033 --- /dev/null +++ b/pkgs/by-name/wa/watchgha/package.nix @@ -0,0 +1,44 @@ +{ + lib, + python3Packages, + fetchPypi, +}: +python3Packages.buildPythonApplication rec { + pname = "watchgha"; + version = "2.4.2"; + pyproject = true; + + src = fetchPypi { + inherit version; + pname = "watchgha"; + hash = "sha256-RtmCC+twOk+viWY7WTbTzuxHTM3MOww+sRuEvlemCcI="; + }; + + build-system = with python3Packages; [ + setuptools + ]; + + dependencies = with python3Packages; [ + click + dulwich + exceptiongroup + httpx + rich + trio + ]; + + nativeCheckInputs = [ + python3Packages.pytestCheckHook + ]; + + pythonImportsCheck = [ "watchgha" ]; + + meta = { + description = "Live display of current GitHub action runs"; + mainProgram = "watch_gha_runs"; + homepage = "https://github.com/nedbat/watchgha"; + license = lib.licenses.apsl20; + maintainers = with lib.maintainers; [ purcell ]; + platforms = lib.platforms.all; + }; +}