python312Packages.python-logging-loki: init at 0.3.1

This commit is contained in:
Moraxyc 2024-06-05 08:15:12 +08:00
parent cc6971ae9c
commit 29dad86f17
No known key found for this signature in database
2 changed files with 51 additions and 0 deletions

View File

@ -0,0 +1,49 @@
{
lib,
buildPythonPackage,
fetchFromGitHub,
setuptools,
pytestCheckHook,
rfc3339,
requests,
freezegun,
}:
buildPythonPackage rec {
pname = "python-logging-loki";
version = "0.3.1";
pyproject = true;
src = fetchFromGitHub {
owner = "GreyZmeem";
repo = "python-logging-loki";
rev = "refs/tags/v${version}";
hash = "sha256-1qHuv+xzATo11au+QAhD1lHcLJtnVKZDdQDGohHUhiI=";
};
build-system = [ setuptools ];
dependencies = [
rfc3339
requests
];
nativeCheckInputs = [
pytestCheckHook
freezegun
];
# ValueError
# Considering that the package has not been updated since 2019, it is likely that this test is broken
disabledTests = [ "test_can_build_tags_from_converting_dict" ];
pythonImportsCheck = [ "logging_loki" ];
meta = {
description = "Python logging handler for Loki";
homepage = "https://github.com/GreyZmeem/python-logging-loki";
changelog = "https://github.com/GreyZmeem/python-logging-loki/releases/tag/v${version}";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ moraxyc ];
};
}

View File

@ -12441,6 +12441,8 @@ self: super: with self; {
python-linux-procfs = callPackage ../development/python-modules/python-linux-procfs { };
python-logging-loki = callPackage ../development/python-modules/python-logging-loki { };
python-logstash = callPackage ../development/python-modules/python-logstash { };
python-louvain = callPackage ../development/python-modules/python-louvain { };