mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-09-29 19:30:11 +00:00
agentsploit: init at 1.6.3 (#549659)
This commit is contained in:
74
pkgs/by-name/ag/agentsploit/package.nix
Normal file
74
pkgs/by-name/ag/agentsploit/package.nix
Normal file
@@ -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";
|
||||
};
|
||||
})
|
||||
Reference in New Issue
Block a user