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