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.

77 lines
1.7 KiB
Nix
Raw Normal View History

2022-03-12 11:16:53 +00:00
{ lib
, fetchFromGitHub
, python3
}:
python3.pkgs.buildPythonApplication rec {
pname = "sigma-cli";
version = "1.0.2";
2023-11-26 09:08:32 +00:00
pyproject = true;
2022-03-12 11:16:53 +00:00
src = fetchFromGitHub {
owner = "SigmaHQ";
repo = "sigma-cli";
2022-05-02 17:39:57 +00:00
rev = "refs/tags/v${version}";
hash = "sha256-/Nciqf8O/Sq2zniaKid1VkYC/H6hgsVzMtOtFy/CiR8=";
2022-03-12 11:16:53 +00:00
};
postPatch = ''
substituteInPlace pyproject.toml \
--replace '= "^' '= ">='
'';
2024-05-17 08:29:35 +00:00
build-system = with python3.pkgs; [
2022-03-12 11:16:53 +00:00
poetry-core
];
2024-05-17 08:29:35 +00:00
dependencies = with python3.pkgs; [
2022-03-12 11:16:53 +00:00
click
colorama
2022-03-12 11:16:53 +00:00
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
];
nativeCheckInputs = with python3.pkgs; [
2022-03-12 11:16:53 +00:00
pytestCheckHook
];
disabledTests = [
"test_plugin_list"
"test_plugin_list_filtered"
"test_plugin_list_search"
"test_plugin_install_notexisting"
"test_plugin_install"
"test_plugin_uninstall"
# Tests require network access
"test_check_with_issues"
"test_plugin_show_identifier"
"test_plugin_show_nonexisting"
"test_plugin_show_uuid"
2023-11-26 09:08:32 +00:00
# Tests compare STDOUT results
"test_check_valid"
"test_check_stdin"
"test_check_exclude"
];
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";
changelog = "https://github.com/SigmaHQ/sigma-cli/releases/tag/v${version}";
2024-05-17 08:29:35 +00:00
license = licenses.lgpl21Plus;
2022-03-12 11:16:53 +00:00
maintainers = with maintainers; [ fab ];
2022-05-02 18:28:30 +00:00
mainProgram = "sigma";
2022-03-12 11:16:53 +00:00
};
}