From ab152e868657029a7c42408dff34c5f17829acd5 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sat, 24 Jan 2026 23:55:48 +0100 Subject: [PATCH] reactguard: init at 0.9.9 Vulnerability detection tool for CVE-2025-55182 (React2Shell https://github.com/theori-io/reactguard --- pkgs/by-name/re/reactguard/package.nix | 41 ++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 pkgs/by-name/re/reactguard/package.nix diff --git a/pkgs/by-name/re/reactguard/package.nix b/pkgs/by-name/re/reactguard/package.nix new file mode 100644 index 000000000000..f9f3a4733989 --- /dev/null +++ b/pkgs/by-name/re/reactguard/package.nix @@ -0,0 +1,41 @@ +{ + lib, + python3, + fetchFromGitHub, +}: + +python3.pkgs.buildPythonApplication (finalAttrs: { + pname = "reactguard"; + version = "0.9.9"; + pyproject = true; + + src = fetchFromGitHub { + owner = "theori-io"; + repo = "reactguard"; + tag = "v${finalAttrs.version}"; + hash = "sha256-ysXdqMny6c1ATTpjI4Ev4T1yjs2jNu4mf7azO/IsAKI="; + }; + + build-system = with python3.pkgs; [ setuptools ]; + + dependencies = with python3.pkgs; [ + httpx + typing-extensions + ]; + + nativeCheckInputs = with python3.pkgs; [ + pytestCheckHook + pytest-cov-stub + pytest-xdist + ]; + + pythonImportsCheck = [ "reactguard" ]; + + meta = { + description = "Vulnerability detection tool for CVE-2025-55182 (React2Shell"; + homepage = "https://github.com/theori-io/reactguard"; + license = lib.licenses.agpl3Only; + maintainers = with lib.maintainers; [ fab ]; + mainProgram = "reactguard"; + }; +})