feat(packages): add nftables-analyzer package
Some checks failed
CI / check (push) Has been cancelled

This commit is contained in:
2026-08-07 07:50:21 +03:00
parent f27894bb2f
commit 24079b7694
4 changed files with 61 additions and 0 deletions

View File

@@ -0,0 +1,54 @@
{
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;
};
}