1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 poetry-core, 6 pysigma, 7 pytestCheckHook, 8}: 9 10buildPythonPackage rec { 11 pname = "pysigma-backend-loki"; 12 version = "0.12.4"; 13 pyproject = true; 14 15 src = fetchFromGitHub { 16 owner = "grafana"; 17 repo = "pySigma-backend-loki"; 18 tag = "v${version}"; 19 hash = "sha256-2VgrIJocFtMFZCTyPQZcSnNJ5XgfD+nbmJ1wvesrQoE="; 20 }; 21 22 build-system = [ poetry-core ]; 23 24 dependencies = [ pysigma ]; 25 26 pythonRelaxDeps = [ "pysigma" ]; 27 28 nativeCheckInputs = [ pytestCheckHook ]; 29 30 pythonImportsCheck = [ "sigma.backends.loki" ]; 31 32 disabledTestPaths = [ 33 # Tests are out-dated 34 "tests/test_backend_loki_field_modifiers.py" 35 ]; 36 37 meta = with lib; { 38 description = "Library to support the loki backend for pySigma"; 39 homepage = "https://github.com/grafana/pySigma-backend-loki"; 40 license = with licenses; [ lgpl21Only ]; 41 maintainers = with maintainers; [ peterromfeldhk ]; 42 }; 43}