From 79bf785a52a538c2c62fc832ad2a4fb87ee7c195 Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Wed, 21 Jan 2026 18:35:09 +0100 Subject: [PATCH] python3Packages.logbook: 1.8.2 -> 1.9.2 https://github.com/getlogbook/logbook/blob/1.9.2/CHANGES This commit was automatically generated using update-python-libraries. --- .../python-modules/logbook/default.nix | 36 +++++++++++++------ 1 file changed, 25 insertions(+), 11 deletions(-) diff --git a/pkgs/development/python-modules/logbook/default.nix b/pkgs/development/python-modules/logbook/default.nix index e521d183b682..1eced7911e03 100644 --- a/pkgs/development/python-modules/logbook/default.nix +++ b/pkgs/development/python-modules/logbook/default.nix @@ -2,7 +2,7 @@ lib, brotli, buildPythonPackage, - cython, + cargo, execnet, fetchFromGitHub, jinja2, @@ -10,27 +10,41 @@ pytest-rerunfailures, pyzmq, redis, + rustc, + rustPlatform, setuptools, + setuptools-rust, sqlalchemy, }: -buildPythonPackage rec { +buildPythonPackage (finalAttrs: { pname = "logbook"; - version = "1.8.2"; - format = "setuptools"; + version = "1.9.2"; + pyproject = true; src = fetchFromGitHub { owner = "getlogbook"; repo = "logbook"; - tag = version; - hash = "sha256-21323iXtjyUAxAEFMsU6t1/nNLEN5G3jHcubNCEYQ3c="; + tag = finalAttrs.version; + hash = "sha256-/oaBUIMsDwyxjQU57BpwXQfDMBNSDAI7fqtem/4QqKw="; }; - nativeBuildInputs = [ - cython + build-system = [ setuptools + setuptools-rust ]; + nativeBuildInputs = [ + cargo + rustc + rustPlatform.cargoSetupHook + ]; + + cargoDeps = rustPlatform.fetchCargoVendor { + inherit (finalAttrs) pname version src; + hash = "sha256-xIjcK69rwtE86DfvD9qXEn8MDIvU0Dl+d4Fmw9BUuCM="; + }; + optional-dependencies = { execnet = [ execnet ]; sqlalchemy = [ sqlalchemy ]; @@ -52,7 +66,7 @@ buildPythonPackage rec { pytestCheckHook pytest-rerunfailures ] - ++ lib.concatAttrValues optional-dependencies; + ++ lib.concatAttrValues finalAttrs.passthru.optional-dependencies; # Some of the tests use localhost networking. __darwinAllowLocalNetworking = true; @@ -67,8 +81,8 @@ buildPythonPackage rec { meta = { description = "Logging replacement for Python"; homepage = "https://logbook.readthedocs.io/"; - changelog = "https://github.com/getlogbook/logbook/blob/${src.tag}/CHANGES"; + changelog = "https://github.com/getlogbook/logbook/blob/${finalAttrs.src.tag}/CHANGES"; license = lib.licenses.bsd3; maintainers = [ ]; }; -} +})