{ lib, buildPythonPackage, fetchFromGitHub, poetry-core, pysigma, pysigma-backend-elasticsearch, pytest-cov-stub, pytestCheckHook, pythonOlder, requests, }: buildPythonPackage rec { pname = "pysigma-backend-opensearch"; version = "1.0.4"; pyproject = true; disabled = pythonOlder "3.8"; src = fetchFromGitHub { owner = "SigmaHQ"; repo = "pySigma-backend-opensearch"; tag = "v${version}"; hash = "sha256-VKDyXTvh0T/MKqsZo9lAlHyfhtiXzP5P+d0DSiLqS1o="; }; pythonRelaxDeps = [ "pysigma" ]; build-system = [ poetry-core ]; dependencies = [ pysigma pysigma-backend-elasticsearch ]; nativeCheckInputs = [ pytest-cov-stub 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"; changelog = "https://github.com/SigmaHQ/pySigma-backend-opensearch/releases/tag/v${version}"; license = licenses.lgpl21Only; maintainers = with maintainers; [ fab ]; }; }