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