1{ 2 lib, 3 buildPythonPackage, 4 fetchPypi, 5 pytestCheckHook, 6 pythonAtLeast, 7}: 8 9buildPythonPackage rec { 10 pname = "python-json-logger"; 11 version = "2.0.7"; 12 format = "setuptools"; 13 14 src = fetchPypi { 15 inherit pname version; 16 hash = "sha256-I+fsAtNCN8WqHimgcBk6Tqh1g7tOf4/QbT3oJkxLLhw="; 17 }; 18 19 nativeCheckInputs = [ pytestCheckHook ]; 20 21 disabledTests = lib.optionals (pythonAtLeast "3.12") [ 22 # https://github.com/madzak/python-json-logger/issues/185 23 "test_custom_object_serialization" 24 "test_percentage_format" 25 "test_rename_reserved_attrs" 26 ]; 27 28 meta = with lib; { 29 description = "Json Formatter for the standard python logger"; 30 homepage = "https://github.com/madzak/python-json-logger"; 31 license = licenses.bsdOriginal; 32 maintainers = [ ]; 33 }; 34}