Files
2026-07-14 01:20:23 +00:00

54 lines
1.2 KiB
Nix

{
lib,
fetchFromGitHub,
python3,
writableTmpDirAsHomeHook,
}:
python3.pkgs.buildPythonApplication (finalAttrs: {
pname = "sigma-cli";
version = "3.1.0";
pyproject = true;
src = fetchFromGitHub {
owner = "SigmaHQ";
repo = "sigma-cli";
tag = "v${finalAttrs.version}";
hash = "sha256-cr9MFKot/A08q0fg4RnSU1Rl7YAOvfoyIC8Loas/+X8=";
};
pythonRelaxDeps = [ "click" ];
build-system = with python3.pkgs; [ poetry-core ];
dependencies = with python3.pkgs; [
click
colorama
prettytable
pysigma
pysigma-backend-elasticsearch
pysigma-backend-insightidr
pysigma-backend-opensearch
pysigma-backend-qradar
pysigma-backend-splunk
pysigma-backend-loki
pysigma-pipeline-crowdstrike
pysigma-pipeline-sysmon
pysigma-pipeline-windows
];
# Starting with 2.0.0 the tests wants to fetch the MITRE data
doCheck = false;
pythonImportsCheck = [ "sigma.cli" ];
meta = {
description = "Sigma command line interface";
homepage = "https://github.com/SigmaHQ/sigma-cli";
changelog = "https://github.com/SigmaHQ/sigma-cli/releases/tag/${finalAttrs.src.tag}";
license = lib.licenses.lgpl21Plus;
maintainers = with lib.maintainers; [ fab ];
mainProgram = "sigma";
};
})