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