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