Files

44 lines
948 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
poetry-core,
pysigma,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "pysigma-backend-loki";
version = "0.12.4";
pyproject = true;
src = fetchFromGitHub {
owner = "grafana";
repo = "pySigma-backend-loki";
tag = "v${version}";
hash = "sha256-2VgrIJocFtMFZCTyPQZcSnNJ5XgfD+nbmJ1wvesrQoE=";
};
build-system = [ poetry-core ];
dependencies = [ pysigma ];
pythonRelaxDeps = [ "pysigma" ];
nativeCheckInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "sigma.backends.loki" ];
disabledTestPaths = [
# Tests are out-dated
"tests/test_backend_loki_field_modifiers.py"
];
meta = with lib; {
description = "Library to support the loki backend for pySigma";
homepage = "https://github.com/grafana/pySigma-backend-loki";
license = with licenses; [ lgpl21Only ];
maintainers = with maintainers; [ peterromfeldhk ];
};
}