me
/
guix
Archived
1
0
Fork 0

gnu: ghc-9.0: Make testsuite compatible with Python 3.10.

* gnu/packages/haskell.scm (ghc-9.0)[native-inputs]: Add patch and
snippet to ghc-testsuite input.
master
Lars-Dominik Braun 2023-04-21 20:25:33 +02:00
parent de76f4545c
commit dc9c09023a
No known key found for this signature in database
GPG Key ID: F663943E08D8092A
1 changed files with 8 additions and 1 deletions

View File

@ -1294,7 +1294,14 @@ interactive environment for the functional language Haskell.")
version "/ghc-" version "-testsuite.tar.xz")) version "/ghc-" version "-testsuite.tar.xz"))
(sha256 (sha256
(base32 (base32
"1m5fzhr4gjn9ni8gxx7ag3fkbw1rspjzgv39mnfb0nkm5mw70v3s")))) "1m5fzhr4gjn9ni8gxx7ag3fkbw1rspjzgv39mnfb0nkm5mw70v3s"))
(patches (search-patches "ghc-9.2-grep-warnings.patch"))
(modules '((guix build utils)))
(snippet
;; collections.Iterable was moved to collections.abc in Python 3.10.
'(substitute* "testsuite/driver/testlib.py"
(("collections\\.Iterable")
"collections.abc.Iterable")))))
,@(filter (match-lambda ,@(filter (match-lambda
(("ghc-bootstrap" . _) #f) (("ghc-bootstrap" . _) #f)
(("ghc-testsuite" . _) #f) (("ghc-testsuite" . _) #f)