nixpkgs/pkgs/tools/security/sigma-cli/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

57 lines
1.1 KiB
Nix
Raw Normal View History

2022-03-12 11:16:53 +00:00
{ lib
, fetchFromGitHub
, python3
}:
python3.pkgs.buildPythonApplication rec {
pname = "sigma-cli";
2022-10-07 01:40:54 +00:00
version = "0.5.3";
2022-03-12 11:16:53 +00:00
format = "pyproject";
src = fetchFromGitHub {
owner = "SigmaHQ";
repo = pname;
2022-05-02 17:39:57 +00:00
rev = "refs/tags/v${version}";
2022-10-07 01:40:54 +00:00
hash = "sha256-orJkWVBZnbhRjYDI6s5fPymzpTmZE5MsmYWp3JOKjnU=";
2022-03-12 11:16:53 +00:00
};
nativeBuildInputs = with python3.pkgs; [
poetry-core
];
propagatedBuildInputs = with python3.pkgs; [
click
prettytable
pysigma
2022-08-07 17:29:15 +00:00
pysigma-backend-elasticsearch
2022-04-14 14:59:39 +00:00
pysigma-backend-insightidr
2022-08-07 17:29:15 +00:00
pysigma-backend-opensearch
pysigma-backend-qradar
pysigma-backend-splunk
2022-03-12 11:16:53 +00:00
pysigma-pipeline-crowdstrike
pysigma-pipeline-sysmon
2022-04-14 14:59:39 +00:00
pysigma-pipeline-windows
2022-03-12 11:16:53 +00:00
];
checkInputs = with python3.pkgs; [
pytestCheckHook
];
postPatch = ''
substituteInPlace pyproject.toml \
2022-09-24 18:41:36 +00:00
--replace '= "^' '= ">='
2022-03-12 11:16:53 +00:00
'';
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 ];
2022-05-02 18:28:30 +00:00
mainProgram = "sigma";
2022-03-12 11:16:53 +00:00
};
}