Commit | Line | Data |
---|---|---|
a06b9b50 RW |
1 | ;;; GNU Guix --- Functional package management for GNU |
2 | ;;; Copyright © 2015 Paul van der Walt <paul@denknerd.org> | |
3 | ;;; Copyright © 2015 Eric Bavier <bavier@member.fsf.org> | |
4 | ;;; Copyright © 2015 Federico Beffa <beffa@fbengineering.ch> | |
5 | ;;; Copyright © 2015, 2016, 2017 Ricardo Wurmus <rekado@elephly.net> | |
6 | ;;; Copyright © 2016 ng0 <ng0@infotropique.org> | |
7 | ;;; Copyright © 2016 David Craven <david@craven.ch> | |
8 | ;;; Copyright © 2017 Danny Milosavljevic <dannym@scratchpost.org> | |
9 | ;;; Copyright © 2017 rsiddharth <s@ricketyspace.net> | |
60c8a14b | 10 | ;;; Copyright © 2017 Tobias Geerinckx-Rice <me@tobias.gr> |
a06b9b50 RW |
11 | ;;; |
12 | ;;; This file is part of GNU Guix. | |
13 | ;;; | |
14 | ;;; GNU Guix is free software; you can redistribute it and/or modify it | |
15 | ;;; under the terms of the GNU General Public License as published by | |
16 | ;;; the Free Software Foundation; either version 3 of the License, or (at | |
17 | ;;; your option) any later version. | |
18 | ;;; | |
19 | ;;; GNU Guix is distributed in the hope that it will be useful, but | |
20 | ;;; WITHOUT ANY WARRANTY; without even the implied warranty of | |
21 | ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
22 | ;;; GNU General Public License for more details. | |
23 | ;;; | |
24 | ;;; You should have received a copy of the GNU General Public License | |
25 | ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>. | |
26 | ||
27 | (define-module (gnu packages haskell-check) | |
28 | #:use-module (gnu packages) | |
29 | #:use-module (gnu packages haskell) | |
30 | #:use-module (guix build-system haskell) | |
31 | #:use-module (guix download) | |
32 | #:use-module ((guix licenses) #:prefix license:) | |
33 | #:use-module (guix packages) | |
34 | #:use-module (guix utils)) | |
35 | ||
36 | (define-public ghc-tasty-ant-xml | |
37 | (package | |
38 | (name "ghc-tasty-ant-xml") | |
39 | (version "1.0.2") | |
40 | (source | |
41 | (origin | |
42 | (method url-fetch) | |
43 | (uri (string-append | |
44 | "https://hackage.haskell.org/package/tasty-ant-xml/tasty-ant-xml-" | |
45 | version | |
46 | ".tar.gz")) | |
47 | (sha256 | |
48 | (base32 | |
49 | "0pgz2lclg2hp72ykljcbxd88pjanfdfk8m5vb2qzcyjr85kwrhxv")))) | |
50 | (build-system haskell-build-system) | |
51 | (inputs | |
52 | `(("ghc-generic-deriving" ,ghc-generic-deriving) | |
53 | ("ghc-xml" ,ghc-xml) | |
54 | ("ghc-mtl" ,ghc-mtl) | |
55 | ("ghc-stm" ,ghc-stm) | |
56 | ("ghc-tagged" ,ghc-tagged) | |
57 | ("ghc-tasty" ,ghc-tasty))) | |
58 | (home-page | |
59 | "https://github.com/ocharles/tasty-ant-xml") | |
60 | (synopsis | |
61 | "Render tasty output to XML for Jenkins") | |
62 | (description | |
63 | "A tasty ingredient to output test results in XML, using the Ant | |
64 | schema. This XML can be consumed by the Jenkins continuous integration | |
65 | framework.") | |
66 | (license license:bsd-3))) | |
67 | ||
68 | (define-public ghc-tasty-smallcheck | |
69 | (package | |
70 | (name "ghc-tasty-smallcheck") | |
f3ec9866 | 71 | (version "0.8.1") |
a06b9b50 RW |
72 | (source |
73 | (origin | |
74 | (method url-fetch) | |
75 | (uri (string-append | |
76 | "https://hackage.haskell.org/package/tasty-smallcheck/tasty-smallcheck-" | |
77 | version | |
78 | ".tar.gz")) | |
79 | (sha256 | |
80 | (base32 | |
f3ec9866 | 81 | "1n66ngzllf3xrlqykwszlkwsi96n5nkm7xbpfq7774vpvfnafjri")))) |
a06b9b50 RW |
82 | (build-system haskell-build-system) |
83 | (inputs | |
84 | `(("ghc-tasty" ,ghc-tasty) | |
85 | ("ghc-smallcheck" ,ghc-smallcheck) | |
86 | ("ghc-async" ,ghc-async) | |
87 | ("ghc-tagged" ,ghc-tagged))) | |
1fd90622 | 88 | (home-page "https://documentup.com/feuerbach/tasty") |
a06b9b50 RW |
89 | (synopsis "SmallCheck support for the Tasty test framework") |
90 | (description "This package provides SmallCheck support for the Tasty | |
91 | Haskell test framework.") | |
92 | (license license:bsd-3))) | |
93 | ||
94 | (define-public ghc-tasty-quickcheck | |
95 | (package | |
96 | (name "ghc-tasty-quickcheck") | |
97 | (version "0.8.4") | |
98 | (source | |
99 | (origin | |
100 | (method url-fetch) | |
101 | (uri (string-append | |
102 | "https://hackage.haskell.org/package/tasty-quickcheck/" | |
103 | "tasty-quickcheck-" version ".tar.gz")) | |
104 | (sha256 | |
105 | (base32 | |
106 | "15rjxib5jmjq0hzj47x15kgp3awc73va4cy1pmpf7k3hvfv4qprn")))) | |
107 | (build-system haskell-build-system) | |
108 | (inputs | |
109 | `(("ghc-quickcheck" ,ghc-quickcheck) | |
110 | ("ghc-tagged" ,ghc-tagged) | |
111 | ("ghc-tasty" ,ghc-tasty) | |
112 | ("ghc-random" ,ghc-random) | |
113 | ("ghc-ansi-terminal" ,ghc-ansi-terminal) | |
114 | ("ghc-tasty-hunit" ,ghc-tasty-hunit) | |
115 | ("ghc-pcre-light" ,ghc-pcre-light))) | |
116 | (home-page "http://documentup.com/feuerbach/tasty") | |
117 | (synopsis "QuickCheck support for the Tasty test framework") | |
118 | (description "This package provides QuickCheck support for the Tasty | |
119 | Haskell test framework.") | |
120 | (license license:expat))) | |
121 | ||
122 | (define-public ghc-tasty-golden | |
123 | (package | |
124 | (name "ghc-tasty-golden") | |
5f83ccbd | 125 | (version "2.3.1.1") |
a06b9b50 RW |
126 | (source |
127 | (origin | |
128 | (method url-fetch) | |
129 | (uri (string-append | |
130 | "https://hackage.haskell.org/package/tasty-golden/tasty-golden-" | |
131 | version | |
132 | ".tar.gz")) | |
133 | (sha256 | |
134 | (base32 | |
5f83ccbd | 135 | "0pcf5hsyp5mmbqn7krdm49jxpkjm6rb4j83j28f76h7q55dzm1wy")))) |
a06b9b50 RW |
136 | (build-system haskell-build-system) |
137 | (inputs | |
138 | `(("ghc-temporary" ,ghc-temporary) | |
139 | ("ghc-tasty" ,ghc-tasty) | |
140 | ("ghc-mtl" ,ghc-mtl) | |
141 | ("ghc-optparse-applicative" ,ghc-optparse-applicative) | |
142 | ("ghc-tagged" ,ghc-tagged) | |
143 | ("ghc-async" ,ghc-async) | |
144 | ("ghc-tasty-hunit" ,ghc-tasty-hunit) | |
145 | ("ghc-temporary-rc" ,ghc-temporary-rc))) | |
146 | (home-page | |
147 | "https://github.com/feuerbach/tasty-golden") | |
148 | (synopsis "Golden tests support for tasty") | |
149 | (description | |
49b9c800 TGR |
150 | "This package provides support for 'golden testing'. A @dfn{golden test} |
151 | is an IO action that writes its result to a file. To pass the test, this | |
152 | output file should be identical to the corresponding 'golden' file, which | |
153 | contains the correct result for the test.") | |
a06b9b50 RW |
154 | (license license:expat))) |
155 | ||
156 | ;; This package builds `clock` without tests, since the tests rely on tasty | |
157 | ;; and tasty-quickcheck, which in turn require clock to build. | |
158 | (define ghc-clock-bootstrap | |
159 | (package | |
160 | (name "ghc-clock-bootstrap") | |
161 | (version "0.5.1") | |
162 | (source | |
163 | (origin | |
164 | (method url-fetch) | |
165 | (uri (string-append | |
166 | "https://hackage.haskell.org/package/" | |
167 | "clock/" | |
168 | "clock-" version ".tar.gz")) | |
169 | (sha256 | |
170 | (base32 "1ncph7vi2q6ywwc8ysxl1ibw6i5dwfvln88ssfazk8jgpj4iyykw")))) | |
171 | (build-system haskell-build-system) | |
172 | (arguments `(#:tests? #f)) ;; Testing suite depends on tasty and | |
173 | ;; tasty-quickcheck, which need clock to build. | |
174 | (home-page "https://hackage.haskell.org/package/clock") | |
175 | (synopsis "High-resolution clock for Haskell") | |
176 | (description "A package for convenient access to high-resolution clock and | |
177 | timer functions of different operating systems via a unified API.") | |
178 | (license license:bsd-3))) | |
179 | ||
180 | (define-public ghc-tasty | |
181 | (package | |
182 | (name "ghc-tasty") | |
183 | (version "0.11.0.1") | |
184 | (source | |
185 | (origin | |
186 | (method url-fetch) | |
187 | (uri (string-append | |
188 | "https://hackage.haskell.org/package/tasty/tasty-" | |
189 | version | |
190 | ".tar.gz")) | |
191 | (sha256 | |
192 | (base32 | |
193 | "1chapivmmwsb1ghwagvdm80bfj3hdk75m94z4p212ng2i4ghpjkx")))) | |
194 | (build-system haskell-build-system) | |
195 | (inputs | |
196 | `(("ghc-stm" ,ghc-stm) | |
197 | ("ghc-mtl" ,ghc-mtl) | |
198 | ("ghc-tagged" ,ghc-tagged) | |
199 | ("ghc-regex-tdfa-rc" ,ghc-regex-tdfa-rc) | |
200 | ("ghc-optparse-applicative" ,ghc-optparse-applicative) | |
201 | ("ghc-unbounded-delays" ,ghc-unbounded-delays) | |
202 | ("ghc-async" ,ghc-async) | |
203 | ("ghc-ansi-terminal" ,ghc-ansi-terminal) | |
204 | ("ghc-clock-bootstrap" ,ghc-clock-bootstrap))) | |
205 | (home-page "http://documentup.com/feuerbach/tasty") | |
206 | (synopsis "Modern and extensible testing framework") | |
207 | (description "Tasty is a modern testing framework for Haskell. It lets | |
208 | you combine your unit tests, golden tests, QuickCheck/SmallCheck properties, | |
209 | and any other types of tests into a single test suite.") | |
210 | (license license:expat))) | |
211 | ||
212 | (define-public ghc-tasty-hunit | |
213 | (package | |
214 | (name "ghc-tasty-hunit") | |
215 | (version "0.9.2") | |
216 | (source | |
217 | (origin | |
218 | (method url-fetch) | |
219 | (uri (string-append | |
220 | "https://hackage.haskell.org/package/tasty-hunit/tasty-hunit-" | |
221 | version | |
222 | ".tar.gz")) | |
223 | (sha256 | |
224 | (base32 | |
225 | "08qnxaw34wfnzi9irs1jd4d0zczqm3k5ffkd4zwhkz0dflmgq7mf")))) | |
226 | (build-system haskell-build-system) | |
227 | (inputs | |
228 | `(("ghc-tasty" ,ghc-tasty))) | |
229 | (home-page "http://documentup.com/feuerbach/tasty") | |
230 | (synopsis "HUnit support for the Tasty test framework") | |
231 | (description "This package provides HUnit support for the Tasty Haskell | |
232 | test framework.") | |
233 | (license license:expat))) | |
234 | ||
235 | (define-public ghc-tasty-kat | |
236 | (package | |
237 | (name "ghc-tasty-kat") | |
238 | (version "0.0.3") | |
239 | (source (origin | |
240 | (method url-fetch) | |
241 | (uri (string-append "https://hackage.haskell.org/package/" | |
242 | "tasty-kat/tasty-kat-" version ".tar.gz")) | |
243 | (sha256 | |
244 | (base32 | |
245 | "14yvlpli6cv6bn3kh8mlfp4x1l6ns4fvmfv6hmj75cvxyzq029d7")))) | |
246 | (build-system haskell-build-system) | |
247 | (inputs | |
248 | `(("ghc-tasty" ,ghc-tasty) | |
249 | ("ghc-mtl" ,ghc-mtl) | |
250 | ("ghc-tasty-quickcheck" ,ghc-tasty-quickcheck) | |
251 | ("ghc-tasty-hunit" ,ghc-tasty-hunit))) | |
252 | (home-page "https://github.com/vincenthz/tasty-kat") | |
253 | (synopsis "Known Answer Tests (KAT) framework for tasty") | |
254 | (description | |
255 | "This package provides a @dfn{Known Answer Tests} (KAT) framework for | |
256 | tasty.") | |
257 | (license license:expat))) | |
258 | ||
259 | (define-public ghc-tasty-th | |
260 | (package | |
261 | (name "ghc-tasty-th") | |
262 | (version "0.1.4") | |
263 | (source | |
264 | (origin | |
265 | (method url-fetch) | |
266 | (uri (string-append | |
267 | "https://hackage.haskell.org/package/tasty-th/tasty-th-" | |
268 | version ".tar.gz")) | |
269 | (sha256 | |
270 | (base32 | |
271 | "0dff9si8i1qp0s7p4hlk0l29vq7wxfglw6mvlgmld43h7rllv88q")))) | |
272 | (build-system haskell-build-system) | |
273 | (inputs | |
274 | `(("ghc-tasty" ,ghc-tasty))) | |
275 | (home-page "https://github.com/bennofs/tasty-th") | |
276 | (synopsis "Automatically generate tasty TestTrees") | |
277 | (description | |
278 | "Tasty-th automatically generates tasty TestTrees from functions of the | |
279 | current module, using TemplateHaskell. This is a fork the original | |
280 | test-framework-th package, modified to work with tasty instead of | |
281 | test-framework.") | |
282 | (license license:bsd-3))) | |
283 | ||
284 | (define-public ghc-tasty-rerun | |
285 | (package | |
286 | (name "ghc-tasty-rerun") | |
0e9f4249 | 287 | (version "1.1.8") |
a06b9b50 RW |
288 | (source (origin |
289 | (method url-fetch) | |
290 | (uri (string-append | |
291 | "https://hackage.haskell.org/package/tasty-rerun/" | |
292 | "tasty-rerun-" version ".tar.gz")) | |
293 | (sha256 | |
294 | (base32 | |
0e9f4249 | 295 | "0yg8cicfn3qaazvp4rbanzy3dyk95k3y1kkd4bykvkl9v4076788")))) |
a06b9b50 RW |
296 | (build-system haskell-build-system) |
297 | (inputs | |
298 | `(("ghc-mtl" ,ghc-mtl) | |
299 | ("ghc-optparse-applicative" ,ghc-optparse-applicative) | |
300 | ("ghc-reducers" ,ghc-reducers) | |
301 | ("ghc-split" ,ghc-split) | |
302 | ("ghc-stm" ,ghc-stm) | |
303 | ("ghc-tagged" ,ghc-tagged) | |
304 | ("ghc-tasty" ,ghc-tasty))) | |
305 | (home-page "https://github.com/ocharles/tasty-rerun") | |
306 | (synopsis "Run tests by filtering the test tree") | |
307 | (description "This package adds the ability to run tests by filtering the | |
308 | test tree based on the result of a previous test run. You can use this to run | |
309 | only those tests that failed in the last run, or to only run the tests that have | |
310 | been added since previous test run.") | |
311 | (license license:bsd-3))) | |
312 | ||
313 | (define-public ghc-quickcheck-instances | |
314 | (package | |
315 | (name "ghc-quickcheck-instances") | |
316 | (version "0.3.12") | |
317 | (source | |
318 | (origin | |
319 | (method url-fetch) | |
320 | (uri (string-append | |
321 | "https://hackage.haskell.org/package/" | |
322 | "quickcheck-instances/quickcheck-instances-" | |
323 | version ".tar.gz")) | |
324 | (sha256 | |
325 | (base32 | |
326 | "1wwvkzpams7i0j7nk5qj8vvhj8x5zcbgbgrpczszgvshva4bkmfx")))) | |
327 | (build-system haskell-build-system) | |
328 | (inputs | |
329 | `(("ghc-old-time" ,ghc-old-time) | |
330 | ("ghc-unordered-containers" ,ghc-unordered-containers) | |
331 | ("ghc-hashable" ,ghc-hashable) | |
332 | ("ghc-quickcheck" ,ghc-quickcheck) | |
333 | ("ghc-scientific" ,ghc-scientific) | |
334 | ("ghc-vector" ,ghc-vector) | |
335 | ("ghc-text" ,ghc-text))) | |
336 | (home-page | |
337 | "https://github.com/aslatter/qc-instances") | |
338 | (synopsis "Common quickcheck instances") | |
339 | (description "This package provides QuickCheck instances for types | |
340 | provided by the Haskell Platform.") | |
341 | (license license:bsd-3))) | |
342 | ||
343 | (define-public ghc-quickcheck-unicode | |
344 | (package | |
345 | (name "ghc-quickcheck-unicode") | |
346 | (version "1.0.0.1") | |
347 | (source | |
348 | (origin | |
349 | (method url-fetch) | |
350 | (uri (string-append | |
351 | "https://hackage.haskell.org/package/quickcheck-unicode/quickcheck-unicode-" | |
352 | version | |
353 | ".tar.gz")) | |
354 | (sha256 | |
355 | (base32 | |
356 | "1a8nl6x7l9b22yx61wm0bh2n1xzb1hd5i5zgg1w4fpaivjnrrhi4")))) | |
357 | (build-system haskell-build-system) | |
358 | (inputs `(("ghc-quickcheck" ,ghc-quickcheck))) | |
359 | (home-page | |
360 | "https://github.com/bos/quickcheck-unicode") | |
361 | (synopsis "Generator functions Unicode-related tests") | |
362 | (description "This package provides generator and shrink functions for | |
363 | testing Unicode-related software.") | |
364 | (license license:bsd-3))) | |
365 | ||
366 | (define-public ghc-quickcheck-io | |
367 | (package | |
368 | (name "ghc-quickcheck-io") | |
bb0e9ca4 | 369 | (version "0.2.0") |
a06b9b50 RW |
370 | (source |
371 | (origin | |
372 | (method url-fetch) | |
373 | (uri (string-append | |
374 | "https://hackage.haskell.org/package/quickcheck-io/quickcheck-io-" | |
375 | version | |
376 | ".tar.gz")) | |
377 | (sha256 | |
378 | (base32 | |
bb0e9ca4 | 379 | "08k4v7pkgjf30pv5j2dfv1gqv6hclxlniyq2sps8zq4zswcr2xzv")))) |
a06b9b50 RW |
380 | (build-system haskell-build-system) |
381 | (inputs | |
382 | `(("ghc-quickcheck" ,ghc-quickcheck) | |
383 | ("ghc-hunit" ,ghc-hunit))) | |
384 | (home-page | |
385 | "https://github.com/hspec/quickcheck-io#readme") | |
386 | (synopsis "Use HUnit assertions as QuickCheck properties") | |
387 | (description "This package provides an orphan instance that allows you to | |
388 | use HUnit assertions as QuickCheck properties.") | |
389 | (license license:expat))) | |
390 | ||
391 | (define-public ghc-quickcheck | |
392 | (package | |
393 | (name "ghc-quickcheck") | |
394 | (version "2.8.2") | |
395 | (outputs '("out" "doc")) | |
396 | (source | |
397 | (origin | |
398 | (method url-fetch) | |
399 | (uri (string-append | |
400 | "https://hackage.haskell.org/package/QuickCheck/QuickCheck-" | |
401 | version | |
402 | ".tar.gz")) | |
403 | (sha256 | |
404 | (base32 | |
405 | "1ai6k5v0bibaxq8xffcblc6rwmmk6gf8vjyd9p2h3y6vwbhlvilq")))) | |
406 | (build-system haskell-build-system) | |
407 | (arguments | |
408 | `(#:tests? #f ; FIXME: currently missing libraries used for tests. | |
409 | #:configure-flags '("-f base4"))) | |
410 | (inputs | |
411 | `(("ghc-tf-random" ,ghc-tf-random))) | |
412 | (home-page | |
413 | "https://github.com/nick8325/quickcheck") | |
414 | (synopsis | |
415 | "Automatic testing of Haskell programs") | |
416 | (description | |
417 | "QuickCheck is a library for random testing of program properties.") | |
418 | (license license:bsd-3))) | |
419 | ||
420 | (define-public ghc-test-framework | |
421 | (package | |
422 | (name "ghc-test-framework") | |
423 | (version "0.8.1.1") | |
424 | (source | |
425 | (origin | |
426 | (method url-fetch) | |
427 | (uri (string-append "https://hackage.haskell.org/package/test-framework/" | |
428 | "test-framework-" version ".tar.gz")) | |
429 | (sha256 | |
430 | (base32 | |
431 | "0wxjgdvb1c4ykazw774zlx86550848wbsvgjgcrdzcgbb9m650vq")))) | |
432 | (build-system haskell-build-system) | |
433 | (native-inputs | |
434 | `(("ghc-hunit" ,ghc-hunit) | |
435 | ("ghc-quickcheck" ,ghc-quickcheck))) | |
436 | (inputs | |
437 | `(("ghc-ansi-terminal" ,ghc-ansi-terminal) | |
438 | ("ghc-ansi-wl-pprint" ,ghc-ansi-wl-pprint) | |
439 | ("ghc-hostname" ,ghc-hostname) | |
440 | ("ghc-old-locale" ,ghc-old-locale) | |
441 | ("ghc-random" ,ghc-random) | |
442 | ("ghc-regex-posix" ,ghc-regex-posix) | |
443 | ("ghc-xml" ,ghc-xml) | |
444 | ("ghc-libxml" ,ghc-libxml))) | |
445 | (home-page "https://batterseapower.github.io/test-framework/") | |
446 | (synopsis "Framework for running and organising tests") | |
447 | (description | |
448 | "This package allows tests such as QuickCheck properties and HUnit test | |
449 | cases to be assembled into test groups, run in parallel (but reported in | |
450 | deterministic order, to aid diff interpretation) and filtered and controlled | |
451 | by command line options. All of this comes with colored test output, progress | |
452 | reporting and test statistics output.") | |
453 | (license license:bsd-3))) | |
454 | ||
455 | (define-public ghc-test-framework-hunit | |
456 | (package | |
457 | (name "ghc-test-framework-hunit") | |
08bb5bbb | 458 | (version "0.3.0.2") |
a06b9b50 RW |
459 | (source |
460 | (origin | |
461 | (method url-fetch) | |
462 | (uri (string-append "https://hackage.haskell.org/package/" | |
463 | "test-framework-hunit/test-framework-hunit-" | |
464 | version ".tar.gz")) | |
465 | (sha256 | |
466 | (base32 | |
08bb5bbb | 467 | "1y0b6vg8nfm43v90lxxcydhi6qlxhfy4vpxbzm5ic2w55bh8xjwm")))) |
a06b9b50 RW |
468 | (build-system haskell-build-system) |
469 | (inputs | |
470 | `(("ghc-extensible-exceptions" ,ghc-extensible-exceptions) | |
471 | ("ghc-hunit" ,ghc-hunit) | |
472 | ("ghc-test-framework" ,ghc-test-framework))) | |
473 | (home-page "https://batterseapower.github.io/test-framework/") | |
474 | (synopsis "HUnit support for test-framework") | |
475 | (description | |
476 | "This package provides HUnit support for the test-framework package.") | |
477 | (license license:bsd-3))) | |
478 | ||
479 | (define-public ghc-test-framework-quickcheck2 | |
480 | (package | |
481 | (name "ghc-test-framework-quickcheck2") | |
482 | (version "0.3.0.3") | |
483 | (source | |
484 | (origin | |
485 | (method url-fetch) | |
486 | (uri (string-append "https://hackage.haskell.org/package/" | |
487 | "test-framework-quickcheck2/" | |
488 | "test-framework-quickcheck2-" version ".tar.gz")) | |
489 | (sha256 | |
490 | (base32 | |
491 | "12p1zwrsz35r3j5gzbvixz9z1h5643rhihf5gqznmc991krwd5nc")) | |
492 | (modules '((guix build utils))) | |
493 | (snippet | |
494 | ;; The Hackage page and the cabal file linked there for this package | |
495 | ;; both list 2.9 as the upper version limit, but the source tarball | |
496 | ;; specifies 2.8. Assume the Hackage page is correct. | |
497 | '(substitute* "test-framework-quickcheck2.cabal" | |
498 | (("QuickCheck >= 2.4 && < 2.8") "QuickCheck >= 2.4 && < 2.9"))))) | |
499 | (build-system haskell-build-system) | |
500 | (inputs | |
501 | `(("ghc-extensible-exceptions" ,ghc-extensible-exceptions) | |
502 | ("ghc-quickcheck" ,ghc-quickcheck) | |
503 | ("ghc-random" ,ghc-random) | |
504 | ("ghc-test-framework" ,ghc-test-framework))) | |
505 | (home-page "https://batterseapower.github.io/test-framework/") | |
506 | (synopsis "QuickCheck2 support for test-framework") | |
507 | (description | |
508 | "This packages provides QuickCheck2 support for the test-framework | |
509 | package.") | |
510 | (license license:bsd-3))) | |
511 | ||
512 | (define-public ghc-test-framework-th | |
513 | (package | |
514 | (name "ghc-test-framework-th") | |
515 | (version "0.2.4") | |
516 | (source | |
517 | (origin | |
518 | (method url-fetch) | |
519 | (uri (string-append "https://hackage.haskell.org/package/" | |
520 | "test-framework-th-" version "/" | |
521 | "test-framework-th-" version ".tar.gz")) | |
522 | (sha256 | |
523 | (base32 | |
524 | "12lw7yj02jb9s0i7rb98jjam43j2h0gzmnbj9zi933fx7sg0sy4b")))) | |
525 | (build-system haskell-build-system) | |
526 | (inputs | |
527 | `(("ghc-test-framework" ,ghc-test-framework) | |
528 | ("ghc-language-haskell-extract" ,ghc-language-haskell-extract) | |
529 | ("ghc-haskell-src-exts" ,ghc-haskell-src-exts) | |
530 | ("ghc-regex-posix" ,ghc-regex-posix))) | |
531 | (home-page "https://github.com/finnsson/test-generator") | |
532 | (synopsis "Auto generate the HUnit- and Quickcheck-bulk-code | |
533 | using Template Haskell") | |
534 | (description "This library contains two functions: | |
535 | @code{defaultMainGenerator} and @code{testGroupGenerator}. | |
536 | ||
537 | @code{defaultMainGenerator} will extract all functions beginning with | |
538 | @code{case_}, @code{prop_}, or @code{test_} in the module and put them in a | |
539 | @code{testGroup}. | |
540 | ||
541 | @code{testGroupGenerator} is like @code{defaultMainGenerator} but without | |
542 | @code{defaultMain}. It is useful if you need a function for the testgroup | |
543 | \(e.g. if you want to be able to call the testgroup from another module).") | |
544 | (license license:bsd-3))) | |
545 | ||
546 | (define-public ghc-hunit | |
547 | (package | |
548 | (name "ghc-hunit") | |
549 | (version "1.2.5.2") | |
550 | (outputs '("out" "doc")) | |
551 | (source | |
552 | (origin | |
553 | (method url-fetch) | |
554 | (uri (string-append | |
555 | "https://hackage.haskell.org/package/HUnit/HUnit-" | |
556 | version | |
557 | ".tar.gz")) | |
558 | (sha256 | |
559 | (base32 | |
560 | "0hcs6qh8bqhip1kkjjnw7ccgcsmawdz5yvffjj5y8zd2vcsavx8a")))) | |
561 | (build-system haskell-build-system) | |
562 | (home-page "http://hunit.sourceforge.net/") | |
563 | (synopsis "Unit testing framework for Haskell") | |
564 | (description | |
565 | "HUnit is a unit testing framework for Haskell, inspired by the | |
566 | JUnit tool for Java.") | |
567 | (license license:bsd-3))) | |
568 | ||
569 | (define-public hspec-discover | |
570 | (package | |
571 | (name "hspec-discover") | |
572 | (version "2.2.0") | |
573 | (source | |
574 | (origin | |
575 | (method url-fetch) | |
576 | (uri (string-append | |
577 | "https://hackage.haskell.org/package/hspec-discover/hspec-discover-" | |
578 | version | |
579 | ".tar.gz")) | |
580 | (sha256 | |
581 | (base32 | |
582 | "0w3awzbljf4hqhxrjrxqa1lfcclg92bhmq641gz2q80vycspapzx")))) | |
583 | (build-system haskell-build-system) | |
584 | (arguments `(#:haddock? #f)) ; Haddock phase fails because there are no | |
585 | ; documentation files. | |
586 | (inputs `(("ghc-hspec-meta" ,ghc-hspec-meta))) | |
587 | (home-page "http://hspec.github.io/") | |
588 | (synopsis "Automatically discover and run Hspec tests") | |
589 | (description "hspec-discover is a tool which automatically discovers and | |
590 | runs Hspec tests.") | |
591 | (license license:expat))) | |
592 | ||
593 | (define-public ghc-hspec-core | |
594 | (package | |
595 | (name "ghc-hspec-core") | |
596 | (version "2.2.0") | |
597 | (source | |
598 | (origin | |
599 | (method url-fetch) | |
600 | (uri (string-append | |
601 | "https://hackage.haskell.org/package/hspec-core/hspec-core-" | |
602 | version | |
603 | ".tar.gz")) | |
604 | (sha256 | |
605 | (base32 | |
606 | "1wgd55k652jaf81nkvciyqi67ycj7zamr4nd9z1cqf8nr9fc3sa4")))) | |
607 | (build-system haskell-build-system) | |
608 | (arguments `(#:tests? #f)) ; FIXME: testing libraries are missing. | |
609 | (inputs | |
610 | `(("ghc-setenv" ,ghc-setenv) | |
611 | ("ghc-ansi-terminal" ,ghc-ansi-terminal) | |
612 | ("ghc-async" ,ghc-async) | |
613 | ("ghc-quickcheck-io" ,ghc-quickcheck-io) | |
614 | ("ghc-hunit" ,ghc-hunit) | |
615 | ("ghc-quickcheck" ,ghc-quickcheck) | |
616 | ("ghc-hspec-expectations" ,ghc-hspec-expectations) | |
617 | ("ghc-silently" ,ghc-silently))) | |
618 | (home-page "http://hspec.github.io/") | |
619 | (synopsis "Testing framework for Haskell") | |
620 | (description "This library exposes internal types and functions that can | |
621 | be used to extend Hspec's functionality.") | |
622 | (license license:expat))) | |
623 | ||
624 | (define-public ghc-hspec-meta | |
625 | (package | |
626 | (name "ghc-hspec-meta") | |
627 | (version "2.2.0") | |
628 | (source | |
629 | (origin | |
630 | (method url-fetch) | |
631 | (uri (string-append | |
632 | "https://hackage.haskell.org/package/hspec-meta/hspec-meta-" | |
633 | version | |
634 | ".tar.gz")) | |
635 | (sha256 | |
636 | (base32 | |
637 | "1fmqmgrzp135cxhmxxbaswkk4bqbpgfml00cmcz0d39n11vzpa5z")))) | |
638 | (build-system haskell-build-system) | |
639 | (inputs | |
640 | `(("ghc-quickcheck" ,ghc-quickcheck) | |
641 | ("ghc-hunit" ,ghc-hunit) | |
642 | ("ghc-ansi-terminal" ,ghc-ansi-terminal) | |
643 | ("ghc-async" ,ghc-async) | |
644 | ("ghc-hspec-expectations" ,ghc-hspec-expectations) | |
645 | ("ghc-setenv" ,ghc-setenv) | |
646 | ("ghc-random" ,ghc-random) | |
647 | ("ghc-quickcheck-io" ,ghc-quickcheck-io))) | |
648 | (home-page "http://hspec.github.io/") | |
649 | (synopsis "Version of Hspec to test Hspec itself") | |
650 | (description "This library provides a stable version of Hspec which is | |
651 | used to test the in-development version of Hspec.") | |
652 | (license license:expat))) | |
653 | ||
654 | (define-public ghc-hspec | |
655 | (package | |
656 | (name "ghc-hspec") | |
657 | (version "2.2.0") | |
658 | (source | |
659 | (origin | |
660 | (method url-fetch) | |
661 | (uri (string-append | |
662 | "https://hackage.haskell.org/package/hspec/hspec-" | |
663 | version | |
664 | ".tar.gz")) | |
665 | (sha256 | |
666 | (base32 | |
667 | "0zqisxznlbszivsgy3irvf566zhcr6ipqqj3x9i7pj5hy913jwqf")))) | |
668 | (build-system haskell-build-system) | |
669 | (inputs | |
670 | `(("ghc-hspec-core" ,ghc-hspec-core) | |
671 | ("hspec-discover" ,hspec-discover) | |
672 | ("ghc-hspec-expectations" ,ghc-hspec-expectations) | |
673 | ("ghc-quickcheck" ,ghc-quickcheck) | |
674 | ("ghc-hunit" ,ghc-hunit) | |
675 | ("ghc-stringbuilder" ,ghc-stringbuilder) | |
676 | ("ghc-hspec-meta" ,ghc-hspec-meta))) | |
677 | (home-page "http://hspec.github.io/") | |
678 | (synopsis "Testing Framework for Haskell") | |
679 | (description "This library provides the Hspec testing framework for | |
680 | Haskell, inspired by the Ruby library RSpec.") | |
681 | (license license:expat))) | |
682 | ||
683 | (define-public ghc-hspec-contrib | |
684 | (package | |
685 | (name "ghc-hspec-contrib") | |
686 | (version "0.3.0") | |
687 | (source (origin | |
688 | (method url-fetch) | |
689 | (uri (string-append "https://hackage.haskell.org/package/" | |
690 | "hspec-contrib/hspec-contrib-" | |
691 | version ".tar.gz")) | |
692 | (sha256 | |
693 | (base32 | |
694 | "006syw8xagfhsx06ws9ywig1qx5lk4cgl7sq6pbid1s64c72mxn4")))) | |
695 | (build-system haskell-build-system) | |
696 | (inputs | |
697 | `(("ghc-hspec-core" ,ghc-hspec-core) | |
698 | ("ghc-hunit" ,ghc-hunit) | |
699 | ("ghc-hspec" ,ghc-hspec) | |
700 | ("ghc-quickcheck" ,ghc-quickcheck))) | |
701 | (native-inputs | |
702 | `(("hspec-discover" ,hspec-discover))) | |
703 | (home-page "http://hspec.github.io/") | |
704 | (synopsis "Contributed functionality for Hspec") | |
705 | (description | |
706 | "This package provides contributed Hspec extensions.") | |
707 | (license license:expat))) | |
708 | ||
709 | (define-public ghc-hspec-expectations | |
710 | (package | |
711 | (name "ghc-hspec-expectations") | |
712 | (version "0.7.2") | |
713 | (source | |
714 | (origin | |
715 | (method url-fetch) | |
716 | (uri (string-append | |
717 | "https://hackage.haskell.org/package/hspec-expectations/hspec-expectations-" | |
718 | version | |
719 | ".tar.gz")) | |
720 | (sha256 | |
721 | (base32 | |
722 | "1w56jiqfyl237sr207gh3b0l8sr9layy0mdsgd5wknzb49mif6ip")))) | |
723 | (build-system haskell-build-system) | |
724 | (inputs `(("ghc-hunit" ,ghc-hunit))) | |
725 | (home-page "https://github.com/sol/hspec-expectations") | |
726 | (synopsis "Catchy combinators for HUnit") | |
727 | (description "This library provides catchy combinators for HUnit, see | |
728 | @uref{https://github.com/sol/hspec-expectations#readme, the README}.") | |
729 | (license license:expat))) |