Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

python312Packages.python-json-logger: 2.0.7 -> 3.2.1, python312Packages.reconplogger: 4.16.1 -> 4.17.0 #368203

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 13 additions & 21 deletions pkgs/development/python-modules/jupyter-events/default.nix
Original file line number Diff line number Diff line change
@@ -1,46 +1,38 @@
{
lib,
buildPythonPackage,
click,
fetchFromGitHub,
pythonOlder,

# build
hatchling,

# runtime
jsonschema,
pytest-asyncio,
pytest-console-scripts,
pytestCheckHook,
python-json-logger,
pythonOlder,
pyyaml,
referencing,
traitlets,

# optionals
click,
rich,

# tests
pytest-asyncio,
pytest-console-scripts,
pytestCheckHook,
traitlets,
}:

buildPythonPackage rec {
pname = "jupyter-events";
version = "0.10.0";
version = "0.11.0";
pyproject = true;

disabled = pythonOlder "3.8";
disabled = pythonOlder "3.9";

src = fetchFromGitHub {
owner = "jupyter";
repo = "jupyter_events";
rev = "refs/tags/v${version}";
hash = "sha256-8aps8aNgXw+XbDgtCvWw+Ij1Cm1N0G+wcL35ySkofOk=";
hash = "sha256-e+BxJc/i5lpljvv6Uwqwrog+nLJ4NOBSqd47Q7DELOE=";
};

nativeBuildInputs = [ hatchling ];
build-system = [ hatchling ];

propagatedBuildInputs = [
dependencies = [
jsonschema
python-json-logger
pyyaml
Expand Down Expand Up @@ -68,11 +60,11 @@ buildPythonPackage rec {
pythonImportsCheck = [ "jupyter_events" ];

meta = with lib; {
changelog = "https://github.com/jupyter/jupyter_events/releases/tag/v${version}";
description = "Configurable event system for Jupyter applications and extensions";
mainProgram = "jupyter-events";
homepage = "https://github.com/jupyter/jupyter_events";
changelog = "https://github.com/jupyter/jupyter_events/releases/tag/v${version}";
license = licenses.bsd3;
maintainers = [ ];
mainProgram = "jupyter-events";
};
}
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
4 changes: 2 additions & 2 deletions pkgs/development/python-modules/reconplogger/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

buildPythonPackage rec {
pname = "reconplogger";
version = "4.16.1";
version = "4.17.0";
pyproject = true;

disabled = pythonOlder "3.8";
Expand All @@ -23,7 +23,7 @@ buildPythonPackage rec {
owner = "omni-us";
repo = "reconplogger";
rev = "refs/tags/v${version}";
hash = "sha256-F/6vT3jLxpteUFtYNtGyiO/JxeRtwJKpdGXTFJ6IDCE=";
hash = "sha256-1WJU1996ui/yJHGRpswvIeAFh+dpH5NgbfTUk8bhr7Y=";
};

build-system = [ setuptools ];
Expand Down
Loading