[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
161/257: gnu: ghc-attoparsec: Enable tests and allow newer QuickCheck.
From: |
Ricardo Wurmus |
Subject: |
161/257: gnu: ghc-attoparsec: Enable tests and allow newer QuickCheck. |
Date: |
Thu, 27 Sep 2018 15:47:20 -0400 (EDT) |
rekado pushed a commit to branch wip-haskell
in repository guix.
commit 14fe7bb783e3070b2f9a7bf1c3d5cd6db3f61f3d
Author: Timothy Sample <address@hidden>
Date: Thu Aug 30 11:39:41 2018 -0400
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.
---
gnu/packages/haskell.scm | 17 +++++++++++++----
1 file changed, 13 insertions(+), 4 deletions(-)
diff --git a/gnu/packages/haskell.scm b/gnu/packages/haskell.scm
index 7c5fef6..5c1bb6f 100644
--- a/gnu/packages/haskell.scm
+++ b/gnu/packages/haskell.scm
@@ -2909,10 +2909,19 @@ with slicing and Clang-style colored diagnostics.")
(base32
"0j6qcwd146yzlkc9mcvzvnixsyl65n2a68l28322q5v9p4g4g4yx"))))
(build-system haskell-build-system)
- ;; FIXME: at least on test fails with QuickCheck > 2.9.2. Once upstream
- ;; has updated the tests to work with a later version of QuickCheck we can
- ;; re-enable them.
- (arguments `(#:tests? #f))
+ (arguments
+ `(#:phases
+ (modify-phases %standard-phases
+ (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
`(("ghc-scientific" ,ghc-scientific)
("ghc-text" ,ghc-text)))
- 190/257: gnu: ghc-doctemplates: Update to 0.2.2.1., (continued)
- 190/257: gnu: ghc-doctemplates: Update to 0.2.2.1., Ricardo Wurmus, 2018/09/27
- 175/257: gnu: ghc-cgi: Adjust dependency constraints., Ricardo Wurmus, 2018/09/27
- 172/257: gnu: ghc-aeson: Update to 1.3.1.1., Ricardo Wurmus, 2018/09/27
- 171/257: gnu: ghc-x509-validation: Update to 1.6.10., Ricardo Wurmus, 2018/09/27
- 168/257: gnu: ghc-quickcheck-instances: Update Cabal file to r1., Ricardo Wurmus, 2018/09/27
- 158/257: gnu: ghc-wave: Update to 0.1.5., Ricardo Wurmus, 2018/09/27
- 189/257: gnu: ghc-connection: Update to 0.2.8., Ricardo Wurmus, 2018/09/27
- 178/257: gnu: ghc-haskell-src-exts-util: Update to 0.2.3., Ricardo Wurmus, 2018/09/27
- 179/257: gnu: ghc-haskell-src-meta: Update to 0.8.0.3., Ricardo Wurmus, 2018/09/27
- 181/257: gnu: ghc-http-date: Update to 0.0.8., Ricardo Wurmus, 2018/09/27
- 161/257: gnu: ghc-attoparsec: Enable tests and allow newer QuickCheck.,
Ricardo Wurmus <=
- 155/257: gnu: ghc-mockery: Update to 0.3.5., Ricardo Wurmus, 2018/09/27
- 156/257: gnu: ghc-network: Update to 2.6.3.6., Ricardo Wurmus, 2018/09/27
- 150/257: gnu: ghc-distributive: Update Cabal file to r6., Ricardo Wurmus, 2018/09/27
- 180/257: gnu: ghc-hslua: Update to 0.9.5.2., Ricardo Wurmus, 2018/09/27
- 146/257: gnu: ghc-openglraw: Update to 3.3.1.0., Ricardo Wurmus, 2018/09/27
- 145/257: gnu: Add ghc-memotrie., Ricardo Wurmus, 2018/09/27
- 143/257: gnu: ghc-doctest: Update to 0.16.0., Ricardo Wurmus, 2018/09/27
- 144/257: gnu: ghc-fgl-arbitrary: Replace "--allow-newer" flags., Ricardo Wurmus, 2018/09/27
- 141/257: gnu: Add ghc-newtype-generics., Ricardo Wurmus, 2018/09/27
- 142/257: gnu: ghc-unliftio: Update to 0.2.7.0., Ricardo Wurmus, 2018/09/27