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