python310Packages.pysigma-backend-opensearch: init at 0.1.2

This commit is contained in:
Fabian Affolter 2022-08-07 19:16:27 +02:00
parent 7c68a4bed4
commit df69944407
2 changed files with 57 additions and 0 deletions

View File

@ -0,0 +1,55 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, poetry-core
, pysigma
, pysigma-backend-elasticsearch
, pytestCheckHook
, pythonOlder
, requests
}:
buildPythonPackage rec {
pname = "pysigma-backend-opensearch";
version = "0.1.2";
format = "pyproject";
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "SigmaHQ";
repo = "pySigma-backend-opensearch";
rev = "v${version}";
hash = "sha256-5+/LOi7GHu8h9WhjpZ7bBc4aM41NiXrSrdGhbXdYMvw=";
};
nativeBuildInputs = [
poetry-core
];
propagatedBuildInputs = [
pysigma
pysigma-backend-elasticsearch
];
checkInputs = [
pytestCheckHook
requests
];
pythonImportsCheck = [
"sigma.backends.opensearch"
];
disabledTests = [
# Tests requires network access
"test_connect_lucene"
];
meta = with lib; {
description = "Library to support OpenSearch for pySigma";
homepage = "https://github.com/SigmaHQ/pySigma-backend-opensearch";
license = with licenses; [ lgpl21Only ];
maintainers = with maintainers; [ fab ];
};
}

View File

@ -8198,6 +8198,8 @@ in {
pysigma-backend-elasticsearch = callPackage ../development/python-modules/pysigma-backend-elasticsearch { };
pysigma-backend-opensearch = callPackage ../development/python-modules/pysigma-backend-opensearch { };
pysigma-backend-splunk = callPackage ../development/python-modules/pysigma-backend-splunk { };
pysigma-backend-insightidr = callPackage ../development/python-modules/pysigma-backend-insightidr { };