gnu: ghc-attoparsec: Enable tests and allow newer QuickCheck.
* gnu/packages/haskell.scm (ghc-attoparsec)[arguments]: Enable tests and add a phase that patches the Cabal file to allow a newer QuickCheck and removes a failing test.
This commit is contained in:
parent
74f490ec0b
commit
0f9e74e9f7
|
@ -2909,10 +2909,19 @@ with slicing and Clang-style colored diagnostics.")
|
||||||
(base32
|
(base32
|
||||||
"0j6qcwd146yzlkc9mcvzvnixsyl65n2a68l28322q5v9p4g4g4yx"))))
|
"0j6qcwd146yzlkc9mcvzvnixsyl65n2a68l28322q5v9p4g4g4yx"))))
|
||||||
(build-system haskell-build-system)
|
(build-system haskell-build-system)
|
||||||
;; FIXME: at least on test fails with QuickCheck > 2.9.2. Once upstream
|
(arguments
|
||||||
;; has updated the tests to work with a later version of QuickCheck we can
|
`(#:phases
|
||||||
;; re-enable them.
|
(modify-phases %standard-phases
|
||||||
(arguments `(#:tests? #f))
|
(add-after 'unpack 'patch-for-newer-quickcheck
|
||||||
|
(lambda _
|
||||||
|
(substitute* "attoparsec.cabal"
|
||||||
|
(("QuickCheck >= 2\\.7 && < 2\\.10")
|
||||||
|
"QuickCheck >= 2.7 && < 2.12"))
|
||||||
|
;; This test fails because of the newer QuickCheck:
|
||||||
|
;; <https://github.com/bos/attoparsec/issues/134>.
|
||||||
|
(substitute* "tests/QC/ByteString.hs"
|
||||||
|
((", testProperty \"satisfyWith\" satisfyWith")
|
||||||
|
"")))))))
|
||||||
(inputs
|
(inputs
|
||||||
`(("ghc-scientific" ,ghc-scientific)
|
`(("ghc-scientific" ,ghc-scientific)
|
||||||
("ghc-text" ,ghc-text)))
|
("ghc-text" ,ghc-text)))
|
||||||
|
|
Loading…
Reference in New Issue