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