nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 fetchFromGitHub,
4 python3,
5 writableTmpDirAsHomeHook,
6}:
7
8python3.pkgs.buildPythonApplication rec {
9 pname = "sigma-cli";
10 version = "2.0.1";
11 pyproject = true;
12
13 src = fetchFromGitHub {
14 owner = "SigmaHQ";
15 repo = "sigma-cli";
16 tag = "v${version}";
17 hash = "sha256-ZYWkQguoTmGo+kuyPSByyukdA2EMdWKjHddYsML9JwA=";
18 };
19
20 pythonRelaxDeps = [ "click" ];
21
22 build-system = with python3.pkgs; [ poetry-core ];
23
24 dependencies = with python3.pkgs; [
25 click
26 colorama
27 prettytable
28 pysigma
29 pysigma-backend-elasticsearch
30 pysigma-backend-insightidr
31 pysigma-backend-opensearch
32 pysigma-backend-qradar
33 pysigma-backend-splunk
34 pysigma-backend-loki
35 pysigma-pipeline-crowdstrike
36 pysigma-pipeline-sysmon
37 pysigma-pipeline-windows
38 ];
39
40 # Starting with 2.0.0 the tests wants to fetch the MITRE data
41 doCheck = false;
42
43 pythonImportsCheck = [ "sigma.cli" ];
44
45 meta = {
46 description = "Sigma command line interface";
47 homepage = "https://github.com/SigmaHQ/sigma-cli";
48 changelog = "https://github.com/SigmaHQ/sigma-cli/releases/tag/${src.tag}";
49 license = lib.licenses.lgpl21Plus;
50 maintainers = with lib.maintainers; [ fab ];
51 mainProgram = "sigma";
52 };
53}