{ lib, python3Packages, fetchFromGitHub, }: python3Packages.buildPythonApplication rec { pname = "nftables-analyzer"; version = "0.1.0-unstable-2025-11-27"; src = fetchFromGitHub { owner = "reinaldosaraiva"; repo = "nftables-analyzer"; rev = "5fc78d0c9ce173e3baa80a5655bcadb1b2f78493"; hash = "sha256-PlEIArUPSSOtVrdUEamZBr1YQnm+GJpl5Xxgk0tHrdw="; }; sourceRoot = "source/backend"; pyproject = true; build-system = with python3Packages; [ hatchling ]; dependencies = with python3Packages; [ typer rich pydantic fastapi uvicorn python-multipart ]; doCheck = false; pythonImportsCheck = [ "nftables_analyzer" ]; passthru = { category = "Networking"; updateScript = [ "nix-update" "--flake" ".#nftables-analyzer" ]; }; meta = with lib; { description = "Analyze nftables firewall rules and evaluate traffic queries"; homepage = "https://github.com/reinaldosaraiva/nftables-analyzer"; license = licenses.mit; mainProgram = "nftables-analyzer"; platforms = platforms.all; }; }