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