nixpkgs/pkgs/development/python-modules/python-json-logger/default.nix
Martin Weinelt e5610b3ef8
python3Packages.python-json-logger: 3.2.1 -> 3.3.0
This commit was automatically generated using update-python-libraries.
2025-08-09 19:02:51 +02:00

49 lines
1.1 KiB
Nix

{
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 = with lib; {
description = "Json Formatter for the standard python logger";
homepage = "https://github.com/madzak/python-json-logger";
license = licenses.bsdOriginal;
maintainers = [ ];
};
}