1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 poetry-core,
6 pysigma,
7 pysigma-pipeline-sysmon,
8 pytestCheckHook,
9 pythonOlder,
10}:
11
12buildPythonPackage rec {
13 pname = "pysigma-backend-splunk";
14 version = "1.1.3";
15 pyproject = true;
16
17 disabled = pythonOlder "3.8";
18
19 src = fetchFromGitHub {
20 owner = "SigmaHQ";
21 repo = "pySigma-backend-splunk";
22 tag = "v${version}";
23 hash = "sha256-zDv04yHYQP2ZKX9g4v7kR8l3OmAyvh7GtmmqjxPtFvI=";
24 };
25
26 nativeBuildInputs = [ poetry-core ];
27
28 propagatedBuildInputs = [ pysigma ];
29
30 nativeCheckInputs = [
31 pysigma-pipeline-sysmon
32 pytestCheckHook
33 ];
34
35 pythonImportsCheck = [ "sigma.backends.splunk" ];
36
37 meta = with lib; {
38 description = "Library to support Splunk for pySigma";
39 homepage = "https://github.com/SigmaHQ/pySigma-backend-splunk";
40 changelog = "https://github.com/SigmaHQ/pySigma-backend-splunk/releases/tag/v${version}";
41 license = with licenses; [ lgpl21Only ];
42 maintainers = with maintainers; [ fab ];
43 };
44}