Files
nixpkgs/pkgs/development/python-modules/python-json-logger/default.nix
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01: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 = {
description = "Json Formatter for the standard python logger";
homepage = "https://github.com/madzak/python-json-logger";
license = lib.licenses.bsdOriginal;
maintainers = [ ];
};
}