c594a97518
GitOrigin-RevId: 301aada7a64812853f2e2634a530ef5d34505048
56 lines
1.1 KiB
Nix
56 lines
1.1 KiB
Nix
{ lib
|
|
, fetchFromGitHub
|
|
, python3
|
|
}:
|
|
|
|
python3.pkgs.buildPythonApplication rec {
|
|
pname = "sigma-cli";
|
|
version = "0.5.3";
|
|
format = "pyproject";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "SigmaHQ";
|
|
repo = pname;
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-orJkWVBZnbhRjYDI6s5fPymzpTmZE5MsmYWp3JOKjnU=";
|
|
};
|
|
|
|
nativeBuildInputs = with python3.pkgs; [
|
|
poetry-core
|
|
];
|
|
|
|
propagatedBuildInputs = with python3.pkgs; [
|
|
click
|
|
prettytable
|
|
pysigma
|
|
pysigma-backend-elasticsearch
|
|
pysigma-backend-insightidr
|
|
pysigma-backend-opensearch
|
|
pysigma-backend-qradar
|
|
pysigma-backend-splunk
|
|
pysigma-pipeline-crowdstrike
|
|
pysigma-pipeline-sysmon
|
|
pysigma-pipeline-windows
|
|
];
|
|
|
|
checkInputs = with python3.pkgs; [
|
|
pytestCheckHook
|
|
];
|
|
|
|
postPatch = ''
|
|
substituteInPlace pyproject.toml \
|
|
--replace '= "^' '= ">='
|
|
'';
|
|
|
|
pythonImportsCheck = [
|
|
"sigma.cli"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Sigma command line interface";
|
|
homepage = "https://github.com/SigmaHQ/sigma-cli";
|
|
license = with licenses; [ lgpl21Plus ];
|
|
maintainers = with maintainers; [ fab ];
|
|
mainProgram = "sigma";
|
|
};
|
|
}
|