Files
nixpkgs/pkgs/development/python-modules/pysigma-backend-opensearch/default.nix
2025-03-03 16:57:11 +01:00

58 lines
1.2 KiB
Nix

{
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 ];
};
}