gnu: ghc-uuid-types: Relax test framework dependency constraints.

* gnu/packages/haskell.scm (ghc-uuid-types)[arguments]: Remove
"--allow-newer" configure flags and add a phase that removes dependency
version constraints from all of the test frameworks.
master
Timothy Sample 2018-08-31 15:18:15 -04:00 committed by Ricardo Wurmus
parent 221c356316
commit fe3ecc307f
No known key found for this signature in database
GPG Key ID: 197A5888235FACAC
1 changed files with 10 additions and 2 deletions

View File

@ -9034,8 +9034,16 @@ IPv4, IPv6 and MAC addresses.")
"1zdka5jnm1h6k36w3nr647yf3b5lqb336g3fkprhd6san9x52xlj"))))
(build-system haskell-build-system)
(arguments
`(#:configure-flags (list "--allow-newer=QuickCheck"
"--allow-newer=HUnit")))
`(#:phases
(modify-phases %standard-phases
(add-before 'configure 'strip-test-framework-constraints
(lambda _
(substitute* "uuid-types.cabal"
(("HUnit >=1\\.2 && < 1\\.4") "HUnit")
(("QuickCheck >=2\\.4 && < 2\\.9") "QuickCheck")
(("tasty >= 0\\.10 && < 0\\.12") "tasty")
(("tasty-hunit == 0\\.9\\.\\*") "tasty-hunit")
(("tasty-quickcheck == 0\\.8\\.\\*") "tasty-quickcheck")))))))
(inputs `(("ghc-hashable" ,ghc-hashable)
("ghc-random" ,ghc-random)
("ghc-text" ,ghc-text)))