10 buildPythonPackage rec {
11 pname = "python-json-logger";
16 inherit pname version;
17 hash = "sha256-I+fsAtNCN8WqHimgcBk6Tqh1g7tOf4/QbT3oJkxLLhw=";
20 build-system = [ setuptools ];
22 nativeCheckInputs = [ pytestCheckHook ];
25 lib.optionals (pythonAtLeast "3.12") [
26 # https://github.com/madzak/python-json-logger/issues/185
27 "test_custom_object_serialization"
28 "test_percentage_format"
29 "test_rename_reserved_attrs"
31 ++ lib.optionals (pythonAtLeast "3.13") [
32 # https://github.com/madzak/python-json-logger/issues/198
33 "test_json_default_encoder_with_timestamp"
37 description = "Json Formatter for the standard python logger";
38 homepage = "https://github.com/madzak/python-json-logger";
39 license = licenses.bsdOriginal;