summaryrefslogtreecommitdiff
path: root/gnu/packages/python-xyz.scm
diff options
context:
space:
mode:
authorYelninei <yelninei@tutamail.com>2026-02-22 08:55:05 +0000
committerSharlatan Hellseher <sharlatanus@gmail.com>2026-02-23 23:01:11 +0000
commit1675a34129c48e9bf79173740614da1ad978ca9a (patch)
treeee63048f482a28a9f11896ee0658d9abb9c35cea /gnu/packages/python-xyz.scm
parentdb92be7a70bf6c314c944a53de81ac98dd87c957 (diff)
gnu: python-docutils: Fix tests on the Hurd.
* gnu/packages/python-xyz.scm (python-docutils): Add phase to substitute correct ENOENT value. Merges: https://codeberg.org/guix/guix/pulls/6620 Change-Id: Ia54b3846f5f6ff3005c1cff25c6ad77e37dbf1e2 Reviewed-by: Nicolas Graves <ngraves@ngraves.fr> Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
Diffstat (limited to 'gnu/packages/python-xyz.scm')
-rw-r--r--gnu/packages/python-xyz.scm12
1 files changed, 11 insertions, 1 deletions
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index b60da5d63e8..27d209126dd 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -9276,7 +9276,17 @@ Google and Numpydoc format.")
(arguments
(list
#:test-backend #~'custom
- #:test-flags #~(list "test/alltests.py")))
+ #:test-flags #~(list "test/alltests.py")
+ #:phases
+ (if (target-hurd?)
+ #~(modify-phases %standard-phases
+ (add-before 'check 'fix-errno
+ (lambda _
+ ;; Some tests check for an exact error message
+ ;; Expecting ENOENT == 2.
+ (substitute* (find-files "test" "\\.py$")
+ (("\\[Errno 2\\]") (format #f "[Errno ~a]" ENOENT))))))
+ #~%standard-phases)))
(native-inputs
(list python-flit-core))
(home-page "https://docutils.sourceforge.net/")