blob: 58f1a0679bd2ca873773caffb8652a0f0f27e416 (
plain)
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
|
{
lib,
buildPythonPackage,
fetchFromGitHub,
freezegun,
pytestCheckHook,
pythonAtLeast,
setuptools,
}:
buildPythonPackage rec {
pname = "python-json-logger";
version = "3.3.0";
pyproject = true;
src = fetchFromGitHub {
owner = "nhairs";
repo = "python-json-logger";
tag = "v${version}";
hash = "sha256-q1s+WRU5xTmF4YW20DrDnXbMeW6vGYzVekxxIDVt8gw=";
};
build-system = [ setuptools ];
nativeCheckInputs = [
freezegun
pytestCheckHook
];
disabledTests =
lib.optionals (pythonAtLeast "3.12") [
# https://github.com/madzak/python-json-logger/issues/185
"test_custom_object_serialization"
"test_percentage_format"
"test_rename_reserved_attrs"
]
++ lib.optionals (pythonAtLeast "3.13") [
# https://github.com/madzak/python-json-logger/issues/198
"test_json_default_encoder_with_timestamp"
];
meta = {
description = "Json Formatter for the standard python logger";
homepage = "https://github.com/madzak/python-json-logger";
license = lib.licenses.bsdOriginal;
maintainers = [ ];
};
}
|