1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 poetry-core, 6 pysigma, 7 pysigma-backend-elasticsearch, 8 pytest-cov-stub, 9 pytestCheckHook, 10 pythonOlder, 11 requests, 12}: 13 14buildPythonPackage rec { 15 pname = "pysigma-backend-opensearch"; 16 version = "1.0.4"; 17 pyproject = true; 18 19 disabled = pythonOlder "3.8"; 20 21 src = fetchFromGitHub { 22 owner = "SigmaHQ"; 23 repo = "pySigma-backend-opensearch"; 24 tag = "v${version}"; 25 hash = "sha256-VKDyXTvh0T/MKqsZo9lAlHyfhtiXzP5P+d0DSiLqS1o="; 26 }; 27 28 pythonRelaxDeps = [ "pysigma" ]; 29 30 build-system = [ poetry-core ]; 31 32 dependencies = [ 33 pysigma 34 pysigma-backend-elasticsearch 35 ]; 36 37 nativeCheckInputs = [ 38 pytest-cov-stub 39 pytestCheckHook 40 requests 41 ]; 42 43 pythonImportsCheck = [ "sigma.backends.opensearch" ]; 44 45 disabledTests = [ 46 # Tests requires network access 47 "test_connect_lucene" 48 ]; 49 50 meta = with lib; { 51 description = "Library to support OpenSearch for pySigma"; 52 homepage = "https://github.com/SigmaHQ/pySigma-backend-opensearch"; 53 changelog = "https://github.com/SigmaHQ/pySigma-backend-opensearch/releases/tag/v${version}"; 54 license = licenses.lgpl21Only; 55 maintainers = with maintainers; [ fab ]; 56 }; 57}