Skip to content

Commit

Permalink
python312Packages.python-json-logger: 2.0.7 -> 3.2.1
Browse files Browse the repository at this point in the history
  • Loading branch information
fabaff committed Dec 27, 2024
1 parent c792c60 commit f97c6eb
Showing 1 changed file with 19 additions and 20 deletions.
39 changes: 19 additions & 20 deletions pkgs/development/python-modules/python-json-logger/default.nix
Original file line number Diff line number Diff line change
@@ -1,41 +1,40 @@
{
lib,
buildPythonPackage,
fetchPypi,
setuptools,
fetchFromGitHub,
freezegun,
pytestCheckHook,
pythonAtLeast,
pythonOlder,
setuptools,
}:

buildPythonPackage rec {
pname = "python-json-logger";
version = "2.0.7";
version = "3.2.1";
pyproject = true;

src = fetchPypi {
inherit pname version;
hash = "sha256-I+fsAtNCN8WqHimgcBk6Tqh1g7tOf4/QbT3oJkxLLhw=";
disabled = pythonOlder "3.11";

src = fetchFromGitHub {
owner = "nhairs";
repo = "python-json-logger";
rev = "refs/tags/v${version}";
hash = "sha256-dM9/ehPY/BnJSNBq1BiTUpJRigdzbGb3jD8Uhx+hmKc=";
};

build-system = [ setuptools ];

nativeCheckInputs = [ pytestCheckHook ];
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"
];
pythonImportsCheck = [ "pythonjsonlogger" ];

meta = with lib; {
description = "Json Formatter for the standard python logger";
homepage = "https://github.com/madzak/python-json-logger";
homepage = "https://github.com/nhairs/python-json-logger";
changelog = "https://github.com/nhairs/python-json-logger/releases/tag/v${version}";
license = licenses.bsdOriginal;
maintainers = [ ];
};
Expand Down

0 comments on commit f97c6eb

Please sign in to comment.