nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 41 lines 899 B view raw
1{ 2 lib, 3 python3, 4 fetchFromGitHub, 5}: 6 7python3.pkgs.buildPythonApplication (finalAttrs: { 8 pname = "reactguard"; 9 version = "0.9.9"; 10 pyproject = true; 11 12 src = fetchFromGitHub { 13 owner = "theori-io"; 14 repo = "reactguard"; 15 tag = "v${finalAttrs.version}"; 16 hash = "sha256-ysXdqMny6c1ATTpjI4Ev4T1yjs2jNu4mf7azO/IsAKI="; 17 }; 18 19 build-system = with python3.pkgs; [ setuptools ]; 20 21 dependencies = with python3.pkgs; [ 22 httpx 23 typing-extensions 24 ]; 25 26 nativeCheckInputs = with python3.pkgs; [ 27 pytestCheckHook 28 pytest-cov-stub 29 pytest-xdist 30 ]; 31 32 pythonImportsCheck = [ "reactguard" ]; 33 34 meta = { 35 description = "Vulnerability detection tool for CVE-2025-55182 (React2Shell"; 36 homepage = "https://github.com/theori-io/reactguard"; 37 license = lib.licenses.agpl3Only; 38 maintainers = with lib.maintainers; [ fab ]; 39 mainProgram = "reactguard"; 40 }; 41})