From 569beef0505b287d76060c1829cf2cc15af34908 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Thu, 14 Apr 2022 16:21:29 +0200 Subject: [PATCH] python3Packages.pysigma-backend-insightidr: init at 0.1.4 --- .../pysigma-backend-insightidr/default.nix | 47 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 + 2 files changed, 49 insertions(+) create mode 100644 pkgs/development/python-modules/pysigma-backend-insightidr/default.nix diff --git a/pkgs/development/python-modules/pysigma-backend-insightidr/default.nix b/pkgs/development/python-modules/pysigma-backend-insightidr/default.nix new file mode 100644 index 000000000000..4a8a51e222b9 --- /dev/null +++ b/pkgs/development/python-modules/pysigma-backend-insightidr/default.nix @@ -0,0 +1,47 @@ +{ lib +, buildPythonPackage +, fetchFromGitHub +, poetry-core +, pysigma +, pytestCheckHook +, pythonOlder +}: + +buildPythonPackage rec { + pname = "pysigma-backend-insightidr"; + version = "0.1.4"; + format = "pyproject"; + + disabled = pythonOlder "3.8"; + + src = fetchFromGitHub { + owner = "SigmaHQ"; + repo = "pySigma-backend-insightidr"; + rev = "v${version}"; + hash = "sha256-ivigYBCoQtAfVmTiKvYugzPbw3tG0Xn5IYbHVJuubDE="; + }; + + nativeBuildInputs = [ + poetry-core + ]; + + propagatedBuildInputs = [ + pysigma + ]; + + checkInputs = [ + pytestCheckHook + ]; + + pythonImportsCheck = [ + "sigma.backends.insight_idr" + "sigma.pipelines.insight_idr" + ]; + + meta = with lib; { + description = "Library to support the Rapid7 InsightIDR backend for pySigma"; + homepage = "https://github.com/SigmaHQ/pySigma-backend-insightidr"; + license = with licenses; [ lgpl21Only ]; + maintainers = with maintainers; [ fab ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 06968c9f5780..cd52c3a46f27 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -7719,6 +7719,8 @@ in { pysigma-backend-splunk = callPackage ../development/python-modules/pysigma-backend-splunk { }; + pysigma-backend-insightidr = callPackage ../development/python-modules/pysigma-backend-insightidr { }; + pysigma-pipeline-crowdstrike = callPackage ../development/python-modules/pysigma-pipeline-crowdstrike { }; pysigma-pipeline-sysmon = callPackage ../development/python-modules/pysigma-pipeline-sysmon { };