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 <sharlatanus@gmail.com>
This commit is contained in:
wrobell 2025-09-29 18:08:56 +01:00 committed by Sharlatan Hellseher
parent 21085d9a1e
commit 803964399c
No known key found for this signature in database
GPG key ID: 76D727BFF62CD2B5

View file

@ -80,6 +80,7 @@
;;; Copyright © 2025 Jake Forster <jakecameron.forster@gmail.com>
;;; Copyright © 2025 Janneke Nieuwenhuizen <janneke@gnu.org>
;;; Copyright © 2025 Hugo Buddelmeijer <hugo@buddelmeijer.nl>
;;; Copyright © 2025 Artur Wroblewski <wrobell@riseup.net>
;;;
;;; 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
;; tests: 1609 passed, 3 skipped
;;
;; 1. Ignore integration tests.
;; 2. Client tests use test fixture no longer available in
;; pytest-asyncio,
;;
;; See: <https://github.com/Neoteroi/BlackSheep/issues/596>.
;; 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))