guix_mirror_bot pushed a commit to branch master
in repository guix.
commit ff779773130c5f23f279ba6ac7c1aabb03c2a710
Author: ajrojas <[email protected]>
AuthorDate: Fri Nov 20 21:45:39 2026 -0300
gnu: python-jinja2: Do not depend on python-trio on the Hurd.
python-trio cannot be built on the Hurd: it needs epoll, kqueue or IOCP,
none of which is available there. It is only used by two test files.
* gnu/packages/python-xyz.scm (python-jinja2)[arguments]<test-flags>:
On the Hurd, ignore the tests that import trio.
[native-inputs]: Remove python-trio when targeting the Hurd.
Merges: https://codeberg.org/guix/guix/pulls/12710
Reviewed-by: Sharlatan Hellseher <[email protected]>
Signed-off-by: Nguyễn Gia Phong <[email protected]>
---
gnu/packages/python-xyz.scm | 15 ++++++++++++---
1 file changed, 12 insertions(+), 3 deletions(-)
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index e548c83359b..fb7ea33f0f6 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -10532,10 +10532,19 @@ for Python.")
(sha256
(base32 "01ds59a1cync34xq7s0q6f50k9nvn2n80zh62qa2a8vnr7fz5nlv"))))
(build-system pyproject-build-system)
+ (arguments
+ (if (target-hurd?)
+ ;; python-trio is not supported on the Hurd, and these two test
+ ;; files import it.
+ (list #:test-flags
+ #~(list "--ignore=tests/test_async.py"
+ "--ignore=tests/test_async_filters.py"))
+ '()))
(native-inputs
- (list python-flit-core
- python-pytest
- python-trio))
+ (append (list python-flit-core python-pytest)
+ (if (target-hurd?)
+ '()
+ (list python-trio))))
(propagated-inputs
(list python-markupsafe))
(home-page "https://jinja.palletsprojects.com/")