From 803964399cd64afab17599d49e9c6212553e937e Mon Sep 17 00:00:00 2001 From: wrobell Date: Mon, 29 Sep 2025 18:08:56 +0100 Subject: [PATCH] gnu: python-blacksheep: Update to 2.4.1. Blacksheep 2.4.1, among other changes, removes dateutil package dependency and improves compatibility with newer versions of pytest-asyncio. The latter allows to run all unit tests with python-pytests-asyncio 1.0 (current version in Guix). * gnu/packages/python-web.scm (python-blacksheep): Update to 2.4.1. [arguments] <#:test-flags>: Remove ignore for tests/clients directory. [native-inputs]: Add nss-certs-for-test. [propagated-inputs]: Remove python-dateutil. Change-Id: I7f391a6f15b1563e28a10197a8444441b3f2e7a7 Signed-off-by: Sharlatan Hellseher --- gnu/packages/python-web.scm | 21 +++++++++------------ 1 file changed, 9 insertions(+), 12 deletions(-) diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm index 69f132f5215b7ea1cc5a1f46708e153f42eea2df..adea9889b26f8d226fca9bae2e157d4178ef1a66 100644 --- a/gnu/packages/python-web.scm +++ b/gnu/packages/python-web.scm @@ -80,6 +80,7 @@ ;;; Copyright © 2025 Jake Forster ;;; Copyright © 2025 Janneke Nieuwenhuizen ;;; Copyright © 2025 Hugo Buddelmeijer +;;; Copyright © 2025 Artur Wroblewski ;;; ;;; This file is part of GNU Guix. ;;; @@ -251,7 +252,7 @@ SNS, Gotify, etc.") (define-public python-blacksheep (package (name "python-blacksheep") - (version "2.4.0") + (version "2.4.1") (source (origin (method git-fetch) @@ -260,20 +261,16 @@ SNS, Gotify, etc.") (commit (string-append "v" version)))) (file-name (git-file-name name version)) (sha256 - (base32 "1iwlj6vl0rnvddbn9zsdgpya88z0lifr86wz3ci1d67li7w5bjiq")))) + (base32 "0znkqj4cipdr1qdsdlbb48b82cpvj24dqiwi0nyiy50b8nd7g5np")))) (build-system pyproject-build-system) (arguments (list - ;; tests: 1443 passed, 3 skipped - ;; - ;; 1. Ignore integration tests. - ;; 2. Client tests use test fixture no longer available in - ;; pytest-asyncio, + ;; tests: 1609 passed, 3 skipped ;; - ;; See: . + ;; Run all unit tests, but do not run integration tests from `itests` + ;; directory. #:test-flags - #~(list "--ignore=itests" - "--ignore=tests/client") + #~(list "tests") #:phases #~(modify-phases %standard-phases (add-before 'build 'cythonize @@ -283,7 +280,8 @@ SNS, Gotify, etc.") (invoke "cython" "-3" file "-I" ".")) (find-files "." ".*\\.pyx$")))))))) (native-inputs - (list python-cython + (list nss-certs-for-test + python-cython python-flask python-jinja2 python-pydantic @@ -293,7 +291,6 @@ SNS, Gotify, etc.") python-setuptools)) (propagated-inputs (list python-certifi - python-dateutil python-essentials-openapi python-guardpost python-itsdangerous))