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