mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-24 21:38:07 -05:00
gnu: GHC: Adjust for Python 3.10.
* gnu/packages/haskell.scm (ghc-8.6, ghc-8.8, ghc-8.10)[native-inputs]: Patch the test suite for Python 3.10 compatibility.
This commit is contained in:
parent
7db5168db1
commit
48718135e7
1 changed files with 21 additions and 3 deletions
|
@ -766,7 +766,13 @@ (define-public ghc-8.6
|
|||
(patches (search-patches "ghc-testsuite-dlopen-pie.patch"))
|
||||
(sha256
|
||||
(base32
|
||||
"0pw9r91g2np3i806g2f4f8z4jfdd7mx226cmdizk4swa7av1qf91"))))
|
||||
"0pw9r91g2np3i806g2f4f8z4jfdd7mx226cmdizk4swa7av1qf91"))
|
||||
(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
|
||||
(("ghc-bootstrap" . _) #f)
|
||||
(("ghc-testsuite" . _) #f)
|
||||
|
@ -841,7 +847,13 @@ (define-public ghc-8.8
|
|||
(patches (search-patches "ghc-testsuite-dlopen-pie.patch"))
|
||||
(sha256
|
||||
(base32
|
||||
"0c55pj2820q26rikhpf636sn4mjgqsxjrl94vsywrh79dxp3k14z"))))
|
||||
"0c55pj2820q26rikhpf636sn4mjgqsxjrl94vsywrh79dxp3k14z"))
|
||||
(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")))))
|
||||
("git" ,git-minimal/fixed) ; invoked during tests
|
||||
,@(filter (match-lambda
|
||||
(("ghc-bootstrap" . _) #f)
|
||||
|
@ -893,7 +905,13 @@ (define-public ghc-8.10
|
|||
(patches (search-patches "ghc-testsuite-dlopen-pie.patch"))
|
||||
(sha256
|
||||
(base32
|
||||
"1zl25gg6bpx5601k8h3cqnns1xfc0nqgwnh8jvn2s65ra3f2g1nz"))))
|
||||
"1zl25gg6bpx5601k8h3cqnns1xfc0nqgwnh8jvn2s65ra3f2g1nz"))
|
||||
(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")))))
|
||||
("git" ,git-minimal/fixed) ; invoked during tests
|
||||
,@(filter (match-lambda
|
||||
(("ghc-bootstrap" . _) #f)
|
||||
|
|
Loading…
Reference in a new issue