blob: fe22ed58b7c621991c884f1c5980925908a94795 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
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 ];
};
}
|