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