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