From 3bb86d31ca535e2c3aa3c3f1e1e926c1f466854c Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Wed, 5 Aug 2026 22:01:49 +0200 Subject: [PATCH] agentsploit: init at 1.6.3 Offensive security framework for AI agents and MCP servers https://github.com/agentsploit/agentsploit --- pkgs/by-name/ag/agentsploit/package.nix | 74 +++++++++++++++++++++++++ 1 file changed, 74 insertions(+) create mode 100644 pkgs/by-name/ag/agentsploit/package.nix diff --git a/pkgs/by-name/ag/agentsploit/package.nix b/pkgs/by-name/ag/agentsploit/package.nix new file mode 100644 index 000000000000..c4bdc75cd5ea --- /dev/null +++ b/pkgs/by-name/ag/agentsploit/package.nix @@ -0,0 +1,74 @@ +{ + lib, + fetchFromGitHub, + nix-update-script, + python3Packages, + versionCheckHook, +}: + +python3Packages.buildPythonApplication (finalAttrs: { + pname = "agentsploit"; + version = "1.6.3"; + pyproject = true; + + __structuredAttrs = true; + + src = fetchFromGitHub { + owner = "agentsploit"; + repo = "agentsploit"; + tag = "v${finalAttrs.version}"; + hash = "sha256-g9h+hM6ujm0uvkWZMoOkZ/wUGA77Yu6lEn1ZNHh6aTg="; + }; + + build-system = with python3Packages; [ hatchling ]; + + dependencies = with python3Packages; [ + anthropic + anyio + fastapi + httpx + ics + jinja2 + mcp + openai + pydantic + pyyaml + reportlab + rich + structlog + typer + uvicorn + ]; + + nativeCheckInputs = with python3Packages; [ + jsonschema + pytestCheckHook + pytest-asyncio + pytest-cov-stub + types-pyyaml + ]; + + nativeInstallCheckInputs = [ versionCheckHook ]; + + disabledTestPaths = [ + # Tests need network access + "tests/integration/" + ]; + + doInstallCheck = true; + + versionCheckProgramArg = [ "version" ]; + + pythonImportsCheck = [ "agentsploit" ]; + + passthru.updateScript = nix-update-script { }; + + meta = { + description = "Offensive security framework for AI agents and MCP servers"; + homepage = "https://github.com/agentsploit/agentsploit"; + changelog = "https://github.com/agentsploit/agentsploit/blob/${finalAttrs.src.rev}/CHANGELOG.md"; + license = lib.licenses.asl20; + maintainers = with lib.maintainers; [ fab ]; + mainProgram = "agentsploit"; + }; +})