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> | |
7291ad1e | 5 | ;;; Copyright © 2015, 2016, 2017, 2018 Ricardo Wurmus <rekado@elephly.net> |
47956fa0 | 6 | ;;; Copyright © 2016 ng0 <ng0@n0.is> |
a06b9b50 RW |
7 | ;;; Copyright © 2016 David Craven <david@craven.ch> |
8 | ;;; Copyright © 2017 Danny Milosavljevic <dannym@scratchpost.org> | |
9 | ;;; Copyright © 2017 rsiddharth <s@ricketyspace.net> | |
03de2634 | 10 | ;;; Copyright © 2017, 2018 Tobias Geerinckx-Rice <me@tobias.gr> |
44cea578 | 11 | ;;; Copyright © 2018 Tonton <tonton@riseup.net> |
cdccdec1 | 12 | ;;; Copyright © 2018 Arun Isaac <arunisaac@systemreboot.net> |
a06b9b50 RW |
13 | ;;; |
14 | ;;; This file is part of GNU Guix. | |
15 | ;;; | |
16 | ;;; GNU Guix is free software; you can redistribute it and/or modify it | |
17 | ;;; under the terms of the GNU General Public License as published by | |
18 | ;;; the Free Software Foundation; either version 3 of the License, or (at | |
19 | ;;; your option) any later version. | |
20 | ;;; | |
21 | ;;; GNU Guix is distributed in the hope that it will be useful, but | |
22 | ;;; WITHOUT ANY WARRANTY; without even the implied warranty of | |
23 | ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
24 | ;;; GNU General Public License for more details. | |
25 | ;;; | |
26 | ;;; You should have received a copy of the GNU General Public License | |
27 | ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>. | |
28 | ||
29 | (define-module (gnu packages haskell-check) | |
30 | #:use-module (gnu packages) | |
47a6582b | 31 | #:use-module (gnu packages haskell-crypto) |
dddbc90c | 32 | #:use-module (gnu packages haskell-xyz) |
a06b9b50 RW |
33 | #:use-module (guix build-system haskell) |
34 | #:use-module (guix download) | |
35 | #:use-module ((guix licenses) #:prefix license:) | |
36 | #:use-module (guix packages) | |
37 | #:use-module (guix utils)) | |
38 | ||
39 | (define-public ghc-tasty-ant-xml | |
40 | (package | |
41 | (name "ghc-tasty-ant-xml") | |
c69f98ba | 42 | (version "1.1.6") |
a06b9b50 RW |
43 | (source |
44 | (origin | |
45 | (method url-fetch) | |
46 | (uri (string-append | |
47 | "https://hackage.haskell.org/package/tasty-ant-xml/tasty-ant-xml-" | |
48 | version | |
49 | ".tar.gz")) | |
50 | (sha256 | |
51 | (base32 | |
c69f98ba | 52 | "13qqpl1prr9dda87dp45mqybay24n8rhxxgvpc9j34kh72g8j5qw")))) |
a06b9b50 RW |
53 | (build-system haskell-build-system) |
54 | (inputs | |
55 | `(("ghc-generic-deriving" ,ghc-generic-deriving) | |
56 | ("ghc-xml" ,ghc-xml) | |
a06b9b50 RW |
57 | ("ghc-tagged" ,ghc-tagged) |
58 | ("ghc-tasty" ,ghc-tasty))) | |
59 | (home-page | |
60 | "https://github.com/ocharles/tasty-ant-xml") | |
61 | (synopsis | |
62 | "Render tasty output to XML for Jenkins") | |
63 | (description | |
64 | "A tasty ingredient to output test results in XML, using the Ant | |
65 | schema. This XML can be consumed by the Jenkins continuous integration | |
66 | framework.") | |
67 | (license license:bsd-3))) | |
68 | ||
69 | (define-public ghc-tasty-smallcheck | |
70 | (package | |
71 | (name "ghc-tasty-smallcheck") | |
f3ec9866 | 72 | (version "0.8.1") |
a06b9b50 RW |
73 | (source |
74 | (origin | |
75 | (method url-fetch) | |
76 | (uri (string-append | |
77 | "https://hackage.haskell.org/package/tasty-smallcheck/tasty-smallcheck-" | |
78 | version | |
79 | ".tar.gz")) | |
80 | (sha256 | |
81 | (base32 | |
f3ec9866 | 82 | "1n66ngzllf3xrlqykwszlkwsi96n5nkm7xbpfq7774vpvfnafjri")))) |
a06b9b50 RW |
83 | (build-system haskell-build-system) |
84 | (inputs | |
85 | `(("ghc-tasty" ,ghc-tasty) | |
86 | ("ghc-smallcheck" ,ghc-smallcheck) | |
87 | ("ghc-async" ,ghc-async) | |
88 | ("ghc-tagged" ,ghc-tagged))) | |
1fd90622 | 89 | (home-page "https://documentup.com/feuerbach/tasty") |
a06b9b50 RW |
90 | (synopsis "SmallCheck support for the Tasty test framework") |
91 | (description "This package provides SmallCheck support for the Tasty | |
92 | Haskell test framework.") | |
93 | (license license:bsd-3))) | |
94 | ||
95 | (define-public ghc-tasty-quickcheck | |
96 | (package | |
97 | (name "ghc-tasty-quickcheck") | |
b542650c | 98 | (version "0.10.1") |
a06b9b50 RW |
99 | (source |
100 | (origin | |
101 | (method url-fetch) | |
102 | (uri (string-append | |
103 | "https://hackage.haskell.org/package/tasty-quickcheck/" | |
104 | "tasty-quickcheck-" version ".tar.gz")) | |
105 | (sha256 | |
106 | (base32 | |
b542650c | 107 | "0k4vvd5vmrncv1s6gdf03l4xijwlk428sb9jfx8n1zaz02971msh")))) |
a06b9b50 RW |
108 | (build-system haskell-build-system) |
109 | (inputs | |
110 | `(("ghc-quickcheck" ,ghc-quickcheck) | |
111 | ("ghc-tagged" ,ghc-tagged) | |
112 | ("ghc-tasty" ,ghc-tasty) | |
113 | ("ghc-random" ,ghc-random) | |
114 | ("ghc-ansi-terminal" ,ghc-ansi-terminal) | |
115 | ("ghc-tasty-hunit" ,ghc-tasty-hunit) | |
116 | ("ghc-pcre-light" ,ghc-pcre-light))) | |
117 | (home-page "http://documentup.com/feuerbach/tasty") | |
118 | (synopsis "QuickCheck support for the Tasty test framework") | |
119 | (description "This package provides QuickCheck support for the Tasty | |
120 | Haskell test framework.") | |
121 | (license license:expat))) | |
122 | ||
123 | (define-public ghc-tasty-golden | |
124 | (package | |
125 | (name "ghc-tasty-golden") | |
576b7dd5 | 126 | (version "2.3.2") |
a06b9b50 RW |
127 | (source |
128 | (origin | |
129 | (method url-fetch) | |
130 | (uri (string-append | |
131 | "https://hackage.haskell.org/package/tasty-golden/tasty-golden-" | |
132 | version | |
133 | ".tar.gz")) | |
134 | (sha256 | |
135 | (base32 | |
576b7dd5 | 136 | "0k3ibjhjc9vcwzrjnl4rnwvfm8l81q347nb7dgvcib6n5wm3s404")))) |
a06b9b50 RW |
137 | (build-system haskell-build-system) |
138 | (inputs | |
139 | `(("ghc-temporary" ,ghc-temporary) | |
140 | ("ghc-tasty" ,ghc-tasty) | |
a06b9b50 RW |
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 | |
36a4366d EF |
150 | "This package provides support for @code{golden testing}. A @dfn{golden |
151 | test} 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 @code{golden} file, which | |
49b9c800 | 153 | contains the correct result for the test.") |
a06b9b50 RW |
154 | (license license:expat))) |
155 | ||
a06b9b50 RW |
156 | (define-public ghc-tasty |
157 | (package | |
158 | (name "ghc-tasty") | |
28049c2a | 159 | (version "1.2.3") |
a06b9b50 RW |
160 | (source |
161 | (origin | |
162 | (method url-fetch) | |
163 | (uri (string-append | |
164 | "https://hackage.haskell.org/package/tasty/tasty-" | |
165 | version | |
166 | ".tar.gz")) | |
167 | (sha256 | |
168 | (base32 | |
28049c2a | 169 | "0qpn0avpw4w1qq5r2gwh2piipj0llqq6ylagr3xnqiraq6mhg8cc")))) |
a06b9b50 RW |
170 | (build-system haskell-build-system) |
171 | (inputs | |
a1eb8be8 | 172 | `(("ghc-tagged" ,ghc-tagged) |
669692eb | 173 | ("ghc-regex-tdfa" ,ghc-regex-tdfa) |
a06b9b50 RW |
174 | ("ghc-optparse-applicative" ,ghc-optparse-applicative) |
175 | ("ghc-unbounded-delays" ,ghc-unbounded-delays) | |
176 | ("ghc-async" ,ghc-async) | |
177 | ("ghc-ansi-terminal" ,ghc-ansi-terminal) | |
9d1944a4 TS |
178 | ("ghc-clock-bootstrap" ,ghc-clock-bootstrap) |
179 | ("ghc-wcwidth" ,ghc-wcwidth-bootstrap))) | |
a06b9b50 RW |
180 | (home-page "http://documentup.com/feuerbach/tasty") |
181 | (synopsis "Modern and extensible testing framework") | |
182 | (description "Tasty is a modern testing framework for Haskell. It lets | |
183 | you combine your unit tests, golden tests, QuickCheck/SmallCheck properties, | |
184 | and any other types of tests into a single test suite.") | |
185 | (license license:expat))) | |
186 | ||
187 | (define-public ghc-tasty-hunit | |
188 | (package | |
189 | (name "ghc-tasty-hunit") | |
92db1a88 | 190 | (version "0.10.0.2") |
a06b9b50 RW |
191 | (source |
192 | (origin | |
193 | (method url-fetch) | |
194 | (uri (string-append | |
195 | "https://hackage.haskell.org/package/tasty-hunit/tasty-hunit-" | |
196 | version | |
197 | ".tar.gz")) | |
198 | (sha256 | |
199 | (base32 | |
92db1a88 | 200 | "1xvf5xs0r8xqkcg354klz4wyzwyzvinalyl6f4fnxwqmzrgch8s8")))) |
a06b9b50 RW |
201 | (build-system haskell-build-system) |
202 | (inputs | |
58182daa TS |
203 | `(("ghc-call-stack" ,ghc-call-stack-boot) |
204 | ("ghc-tasty" ,ghc-tasty))) | |
a06b9b50 RW |
205 | (home-page "http://documentup.com/feuerbach/tasty") |
206 | (synopsis "HUnit support for the Tasty test framework") | |
207 | (description "This package provides HUnit support for the Tasty Haskell | |
208 | test framework.") | |
209 | (license license:expat))) | |
210 | ||
211 | (define-public ghc-tasty-kat | |
212 | (package | |
213 | (name "ghc-tasty-kat") | |
214 | (version "0.0.3") | |
215 | (source (origin | |
216 | (method url-fetch) | |
217 | (uri (string-append "https://hackage.haskell.org/package/" | |
218 | "tasty-kat/tasty-kat-" version ".tar.gz")) | |
219 | (sha256 | |
220 | (base32 | |
221 | "14yvlpli6cv6bn3kh8mlfp4x1l6ns4fvmfv6hmj75cvxyzq029d7")))) | |
222 | (build-system haskell-build-system) | |
223 | (inputs | |
224 | `(("ghc-tasty" ,ghc-tasty) | |
a06b9b50 RW |
225 | ("ghc-tasty-quickcheck" ,ghc-tasty-quickcheck) |
226 | ("ghc-tasty-hunit" ,ghc-tasty-hunit))) | |
227 | (home-page "https://github.com/vincenthz/tasty-kat") | |
228 | (synopsis "Known Answer Tests (KAT) framework for tasty") | |
229 | (description | |
230 | "This package provides a @dfn{Known Answer Tests} (KAT) framework for | |
231 | tasty.") | |
232 | (license license:expat))) | |
233 | ||
234 | (define-public ghc-tasty-th | |
235 | (package | |
236 | (name "ghc-tasty-th") | |
310d782e | 237 | (version "0.1.7") |
a06b9b50 RW |
238 | (source |
239 | (origin | |
240 | (method url-fetch) | |
241 | (uri (string-append | |
242 | "https://hackage.haskell.org/package/tasty-th/tasty-th-" | |
243 | version ".tar.gz")) | |
244 | (sha256 | |
245 | (base32 | |
310d782e | 246 | "0b2ivrw2257m4cy4rjnkwqlarh83j1y3zywnmaqqqbvy667sqnj3")))) |
a06b9b50 RW |
247 | (build-system haskell-build-system) |
248 | (inputs | |
310d782e TS |
249 | `(("ghc-haskell-src-exts" ,ghc-haskell-src-exts) |
250 | ("ghc-tasty" ,ghc-tasty) | |
251 | ("ghc-tasty-hunit" ,ghc-tasty-hunit))) | |
a06b9b50 RW |
252 | (home-page "https://github.com/bennofs/tasty-th") |
253 | (synopsis "Automatically generate tasty TestTrees") | |
254 | (description | |
255 | "Tasty-th automatically generates tasty TestTrees from functions of the | |
256 | current module, using TemplateHaskell. This is a fork the original | |
257 | test-framework-th package, modified to work with tasty instead of | |
258 | test-framework.") | |
259 | (license license:bsd-3))) | |
260 | ||
261 | (define-public ghc-tasty-rerun | |
262 | (package | |
263 | (name "ghc-tasty-rerun") | |
f752336c | 264 | (version "1.1.12") |
a06b9b50 RW |
265 | (source (origin |
266 | (method url-fetch) | |
267 | (uri (string-append | |
268 | "https://hackage.haskell.org/package/tasty-rerun/" | |
269 | "tasty-rerun-" version ".tar.gz")) | |
270 | (sha256 | |
271 | (base32 | |
f752336c | 272 | "05lp4zy6lwd916snq6hs43848n62j9vdfl3s8sfivqydrax0vvd8")))) |
a06b9b50 RW |
273 | (build-system haskell-build-system) |
274 | (inputs | |
f54f0475 | 275 | `(("ghc-optparse-applicative" ,ghc-optparse-applicative) |
a06b9b50 RW |
276 | ("ghc-reducers" ,ghc-reducers) |
277 | ("ghc-split" ,ghc-split) | |
a06b9b50 RW |
278 | ("ghc-tagged" ,ghc-tagged) |
279 | ("ghc-tasty" ,ghc-tasty))) | |
280 | (home-page "https://github.com/ocharles/tasty-rerun") | |
281 | (synopsis "Run tests by filtering the test tree") | |
282 | (description "This package adds the ability to run tests by filtering the | |
283 | test tree based on the result of a previous test run. You can use this to run | |
284 | only those tests that failed in the last run, or to only run the tests that have | |
285 | been added since previous test run.") | |
286 | (license license:bsd-3))) | |
287 | ||
ee448389 RW |
288 | (define-public ghc-tasty-expected-failure |
289 | (package | |
290 | (name "ghc-tasty-expected-failure") | |
13e9d13c | 291 | (version "0.11.1.2") |
ee448389 RW |
292 | (source |
293 | (origin | |
294 | (method url-fetch) | |
295 | (uri (string-append "https://hackage.haskell.org/package/" | |
296 | "tasty-expected-failure/tasty-expected-failure-" | |
297 | version ".tar.gz")) | |
298 | (sha256 | |
299 | (base32 | |
13e9d13c | 300 | "175gdk1mkslcwjxajkbl4zmaigzf8h4svzd7va5qb519y0dxk28n")))) |
ee448389 RW |
301 | (build-system haskell-build-system) |
302 | (inputs | |
303 | `(("ghc-tagged" ,ghc-tagged) | |
304 | ("ghc-tasty" ,ghc-tasty))) | |
305 | (home-page "http://github.com/nomeata/tasty-expected-failure") | |
306 | (synopsis "Mark tasty tests as failure expected") | |
307 | (description | |
308 | "With the function @code{Test.Tasty.ExpectedFailure.expectFail} in the | |
309 | provided module @code{Test.Tasty.ExpectedFailure}, you can mark that you | |
310 | expect test cases to fail, and not to pass. This can be used for test-driven | |
311 | development.") | |
312 | (license license:expat))) | |
313 | ||
a06b9b50 RW |
314 | (define-public ghc-quickcheck-instances |
315 | (package | |
316 | (name "ghc-quickcheck-instances") | |
e9f64fa0 | 317 | (version "0.3.22") |
a06b9b50 RW |
318 | (source |
319 | (origin | |
320 | (method url-fetch) | |
321 | (uri (string-append | |
322 | "https://hackage.haskell.org/package/" | |
323 | "quickcheck-instances/quickcheck-instances-" | |
324 | version ".tar.gz")) | |
325 | (sha256 | |
326 | (base32 | |
e9f64fa0 | 327 | "14asr9r7da3w7p4hjj51w2yb002nz8x0np8hdz9z4yjvi60vyrax")))) |
a06b9b50 | 328 | (build-system haskell-build-system) |
cdccdec1 | 329 | (arguments |
fc042487 | 330 | `(#:cabal-revision |
e9f64fa0 | 331 | ("2" "1ia5fjhpg7rz793552v88gv2iqx7hl9mi2g09m0llasy1cpzc9jr"))) |
a06b9b50 | 332 | (inputs |
04a69991 RW |
333 | `(("ghc-quickcheck" ,ghc-quickcheck) |
334 | ("ghc-base-compat" ,ghc-base-compat) | |
335 | ("ghc-case-insensitive" ,ghc-case-insensitive) | |
a06b9b50 | 336 | ("ghc-hashable" ,ghc-hashable) |
04a69991 | 337 | ("ghc-old-time" ,ghc-old-time) |
a06b9b50 | 338 | ("ghc-scientific" ,ghc-scientific) |
04a69991 | 339 | ("ghc-tagged" ,ghc-tagged) |
e9f64fa0 | 340 | ("ghc-time-compat" ,ghc-time-compat) |
04a69991 RW |
341 | ("ghc-transformers-compat" ,ghc-transformers-compat) |
342 | ("ghc-unordered-containers" ,ghc-unordered-containers) | |
343 | ("ghc-uuid-types" ,ghc-uuid-types) | |
344 | ("ghc-vector" ,ghc-vector))) | |
345 | (home-page "https://github.com/aslatter/qc-instances") | |
a06b9b50 RW |
346 | (synopsis "Common quickcheck instances") |
347 | (description "This package provides QuickCheck instances for types | |
348 | provided by the Haskell Platform.") | |
349 | (license license:bsd-3))) | |
350 | ||
351 | (define-public ghc-quickcheck-unicode | |
352 | (package | |
353 | (name "ghc-quickcheck-unicode") | |
03de2634 | 354 | (version "1.0.1.0") |
a06b9b50 RW |
355 | (source |
356 | (origin | |
357 | (method url-fetch) | |
358 | (uri (string-append | |
03de2634 TGR |
359 | "https://hackage.haskell.org/package/quickcheck-unicode/" |
360 | "quickcheck-unicode-" version ".tar.gz")) | |
a06b9b50 RW |
361 | (sha256 |
362 | (base32 | |
03de2634 | 363 | "0s43s1bzbg3gwsjgm7fpyksd1339f0m26dlw2famxwyzgvm0a80k")))) |
a06b9b50 RW |
364 | (build-system haskell-build-system) |
365 | (inputs `(("ghc-quickcheck" ,ghc-quickcheck))) | |
366 | (home-page | |
367 | "https://github.com/bos/quickcheck-unicode") | |
368 | (synopsis "Generator functions Unicode-related tests") | |
369 | (description "This package provides generator and shrink functions for | |
370 | testing Unicode-related software.") | |
371 | (license license:bsd-3))) | |
372 | ||
373 | (define-public ghc-quickcheck-io | |
374 | (package | |
375 | (name "ghc-quickcheck-io") | |
bb0e9ca4 | 376 | (version "0.2.0") |
a06b9b50 RW |
377 | (source |
378 | (origin | |
379 | (method url-fetch) | |
380 | (uri (string-append | |
381 | "https://hackage.haskell.org/package/quickcheck-io/quickcheck-io-" | |
382 | version | |
383 | ".tar.gz")) | |
384 | (sha256 | |
385 | (base32 | |
bb0e9ca4 | 386 | "08k4v7pkgjf30pv5j2dfv1gqv6hclxlniyq2sps8zq4zswcr2xzv")))) |
a06b9b50 RW |
387 | (build-system haskell-build-system) |
388 | (inputs | |
389 | `(("ghc-quickcheck" ,ghc-quickcheck) | |
390 | ("ghc-hunit" ,ghc-hunit))) | |
391 | (home-page | |
392 | "https://github.com/hspec/quickcheck-io#readme") | |
393 | (synopsis "Use HUnit assertions as QuickCheck properties") | |
394 | (description "This package provides an orphan instance that allows you to | |
395 | use HUnit assertions as QuickCheck properties.") | |
396 | (license license:expat))) | |
397 | ||
398 | (define-public ghc-quickcheck | |
399 | (package | |
400 | (name "ghc-quickcheck") | |
178f69cb | 401 | (version "2.13.2") |
a06b9b50 RW |
402 | (outputs '("out" "doc")) |
403 | (source | |
404 | (origin | |
405 | (method url-fetch) | |
406 | (uri (string-append | |
407 | "https://hackage.haskell.org/package/QuickCheck/QuickCheck-" | |
408 | version | |
409 | ".tar.gz")) | |
410 | (sha256 | |
411 | (base32 | |
178f69cb | 412 | "0426j43af8v3qmdjjqxivazsvr3a2brac8yw09vpgpjkb2m0nmkv")))) |
a06b9b50 RW |
413 | (build-system haskell-build-system) |
414 | (arguments | |
09b52698 | 415 | `(#:tests? #f)) ; FIXME: currently missing libraries used for tests. |
a06b9b50 | 416 | (inputs |
7291ad1e | 417 | `(("ghc-random" ,ghc-random) |
178f69cb | 418 | ("ghc-splitmix" ,ghc-splitmix-bootstrap) |
7291ad1e RW |
419 | ("ghc-tf-random" ,ghc-tf-random))) |
420 | (home-page "https://github.com/nick8325/quickcheck") | |
421 | (synopsis "Automatic testing of Haskell programs") | |
a06b9b50 | 422 | (description |
7291ad1e RW |
423 | "QuickCheck is a library for random testing of program properties. The |
424 | programmer provides a specification of the program, in the form of properties | |
425 | which functions should satisfy, and QuickCheck then tests that the properties | |
426 | hold in a large number of randomly generated cases. Specifications are | |
427 | expressed in Haskell, using combinators defined in the QuickCheck library.") | |
a06b9b50 RW |
428 | (license license:bsd-3))) |
429 | ||
430 | (define-public ghc-test-framework | |
431 | (package | |
432 | (name "ghc-test-framework") | |
bc8bda50 | 433 | (version "0.8.2.0") |
a06b9b50 RW |
434 | (source |
435 | (origin | |
436 | (method url-fetch) | |
437 | (uri (string-append "https://hackage.haskell.org/package/test-framework/" | |
438 | "test-framework-" version ".tar.gz")) | |
439 | (sha256 | |
440 | (base32 | |
bc8bda50 | 441 | "1hhacrzam6b8f10hyldmjw8pb7frdxh04rfg3farxcxwbnhwgbpm")))) |
a06b9b50 | 442 | (build-system haskell-build-system) |
7fa02bc7 | 443 | (arguments |
bc8bda50 | 444 | `(#:tests? #f ; FIXME: Tests do not build. |
d418ec06 TS |
445 | #:cabal-revision |
446 | ("5" "18g92ajx3ghznd6k3ihj22ln29n676ailzwx3k0f1kj3bmpilnh6"))) | |
a06b9b50 RW |
447 | (native-inputs |
448 | `(("ghc-hunit" ,ghc-hunit) | |
449 | ("ghc-quickcheck" ,ghc-quickcheck))) | |
450 | (inputs | |
451 | `(("ghc-ansi-terminal" ,ghc-ansi-terminal) | |
452 | ("ghc-ansi-wl-pprint" ,ghc-ansi-wl-pprint) | |
453 | ("ghc-hostname" ,ghc-hostname) | |
454 | ("ghc-old-locale" ,ghc-old-locale) | |
455 | ("ghc-random" ,ghc-random) | |
456 | ("ghc-regex-posix" ,ghc-regex-posix) | |
457 | ("ghc-xml" ,ghc-xml) | |
bc8bda50 TS |
458 | ("ghc-libxml" ,ghc-libxml) |
459 | ("ghc-semigroups" ,ghc-semigroups-bootstrap))) | |
a06b9b50 RW |
460 | (home-page "https://batterseapower.github.io/test-framework/") |
461 | (synopsis "Framework for running and organising tests") | |
462 | (description | |
463 | "This package allows tests such as QuickCheck properties and HUnit test | |
464 | cases to be assembled into test groups, run in parallel (but reported in | |
465 | deterministic order, to aid diff interpretation) and filtered and controlled | |
466 | by command line options. All of this comes with colored test output, progress | |
467 | reporting and test statistics output.") | |
468 | (license license:bsd-3))) | |
469 | ||
470 | (define-public ghc-test-framework-hunit | |
471 | (package | |
472 | (name "ghc-test-framework-hunit") | |
08bb5bbb | 473 | (version "0.3.0.2") |
a06b9b50 RW |
474 | (source |
475 | (origin | |
476 | (method url-fetch) | |
477 | (uri (string-append "https://hackage.haskell.org/package/" | |
478 | "test-framework-hunit/test-framework-hunit-" | |
479 | version ".tar.gz")) | |
480 | (sha256 | |
481 | (base32 | |
08bb5bbb | 482 | "1y0b6vg8nfm43v90lxxcydhi6qlxhfy4vpxbzm5ic2w55bh8xjwm")))) |
a06b9b50 | 483 | (build-system haskell-build-system) |
a5f7a5f6 | 484 | (arguments |
aeb1c6ab TS |
485 | `(#:cabal-revision |
486 | ("3" "0i9mlalv7cl1iq43ld5myrnpszq5rxmd79hk495dcb08rglhgl3z"))) | |
a06b9b50 RW |
487 | (inputs |
488 | `(("ghc-extensible-exceptions" ,ghc-extensible-exceptions) | |
489 | ("ghc-hunit" ,ghc-hunit) | |
490 | ("ghc-test-framework" ,ghc-test-framework))) | |
491 | (home-page "https://batterseapower.github.io/test-framework/") | |
492 | (synopsis "HUnit support for test-framework") | |
493 | (description | |
494 | "This package provides HUnit support for the test-framework package.") | |
495 | (license license:bsd-3))) | |
496 | ||
497 | (define-public ghc-test-framework-quickcheck2 | |
498 | (package | |
499 | (name "ghc-test-framework-quickcheck2") | |
fee444f5 | 500 | (version "0.3.0.5") |
a06b9b50 RW |
501 | (source |
502 | (origin | |
503 | (method url-fetch) | |
504 | (uri (string-append "https://hackage.haskell.org/package/" | |
505 | "test-framework-quickcheck2/" | |
506 | "test-framework-quickcheck2-" version ".tar.gz")) | |
507 | (sha256 | |
508 | (base32 | |
fee444f5 | 509 | "0ngf9vvby4nrdf1i7dxf5m9jn0g2pkq32w48xdr92n9hxka7ixn9")))) |
a06b9b50 | 510 | (build-system haskell-build-system) |
c2d2f275 TS |
511 | (arguments |
512 | `(#:cabal-revision | |
fee444f5 | 513 | ("1" "1vmpk70h1594h9s216d3ngkb399fpny1d3sh4gg0vrc75p4as68d"))) |
a06b9b50 RW |
514 | (inputs |
515 | `(("ghc-extensible-exceptions" ,ghc-extensible-exceptions) | |
516 | ("ghc-quickcheck" ,ghc-quickcheck) | |
517 | ("ghc-random" ,ghc-random) | |
518 | ("ghc-test-framework" ,ghc-test-framework))) | |
519 | (home-page "https://batterseapower.github.io/test-framework/") | |
520 | (synopsis "QuickCheck2 support for test-framework") | |
521 | (description | |
3c7b6509 | 522 | "This package provides QuickCheck2 support for the test-framework |
a06b9b50 RW |
523 | package.") |
524 | (license license:bsd-3))) | |
525 | ||
526 | (define-public ghc-test-framework-th | |
527 | (package | |
528 | (name "ghc-test-framework-th") | |
529 | (version "0.2.4") | |
530 | (source | |
531 | (origin | |
532 | (method url-fetch) | |
533 | (uri (string-append "https://hackage.haskell.org/package/" | |
534 | "test-framework-th-" version "/" | |
535 | "test-framework-th-" version ".tar.gz")) | |
536 | (sha256 | |
537 | (base32 | |
538 | "12lw7yj02jb9s0i7rb98jjam43j2h0gzmnbj9zi933fx7sg0sy4b")))) | |
539 | (build-system haskell-build-system) | |
540 | (inputs | |
541 | `(("ghc-test-framework" ,ghc-test-framework) | |
542 | ("ghc-language-haskell-extract" ,ghc-language-haskell-extract) | |
543 | ("ghc-haskell-src-exts" ,ghc-haskell-src-exts) | |
544 | ("ghc-regex-posix" ,ghc-regex-posix))) | |
545 | (home-page "https://github.com/finnsson/test-generator") | |
546 | (synopsis "Auto generate the HUnit- and Quickcheck-bulk-code | |
547 | using Template Haskell") | |
548 | (description "This library contains two functions: | |
549 | @code{defaultMainGenerator} and @code{testGroupGenerator}. | |
550 | ||
551 | @code{defaultMainGenerator} will extract all functions beginning with | |
552 | @code{case_}, @code{prop_}, or @code{test_} in the module and put them in a | |
553 | @code{testGroup}. | |
554 | ||
555 | @code{testGroupGenerator} is like @code{defaultMainGenerator} but without | |
556 | @code{defaultMain}. It is useful if you need a function for the testgroup | |
557 | \(e.g. if you want to be able to call the testgroup from another module).") | |
558 | (license license:bsd-3))) | |
559 | ||
560 | (define-public ghc-hunit | |
561 | (package | |
562 | (name "ghc-hunit") | |
f1ac3bba | 563 | (version "1.6.0.0") |
a06b9b50 RW |
564 | (outputs '("out" "doc")) |
565 | (source | |
566 | (origin | |
567 | (method url-fetch) | |
f1ac3bba RW |
568 | (uri (string-append "https://hackage.haskell.org/package/HUnit/" |
569 | "HUnit-" version ".tar.gz")) | |
a06b9b50 RW |
570 | (sha256 |
571 | (base32 | |
f1ac3bba | 572 | "1pnhwqq5v8h48gbp3ibv3skfj25mf4zs5svxcavq93p9cswycj3l")))) |
a06b9b50 | 573 | (build-system haskell-build-system) |
f1ac3bba RW |
574 | (inputs |
575 | ;; We cannot use ghc-call-stack there, because it depends on | |
576 | ;; ghc-nanospec, which depends on ghc-hunit. | |
577 | `(("ghc-call-stack" ,ghc-call-stack-boot))) | |
a06b9b50 RW |
578 | (home-page "http://hunit.sourceforge.net/") |
579 | (synopsis "Unit testing framework for Haskell") | |
580 | (description | |
581 | "HUnit is a unit testing framework for Haskell, inspired by the | |
582 | JUnit tool for Java.") | |
583 | (license license:bsd-3))) | |
584 | ||
585 | (define-public hspec-discover | |
586 | (package | |
587 | (name "hspec-discover") | |
a5a870d8 | 588 | (version "2.7.1") |
a06b9b50 RW |
589 | (source |
590 | (origin | |
591 | (method url-fetch) | |
8d04a5c9 RW |
592 | (uri (string-append "https://hackage.haskell.org/package/" |
593 | "hspec-discover/hspec-discover-" | |
594 | version ".tar.gz")) | |
a06b9b50 RW |
595 | (sha256 |
596 | (base32 | |
a5a870d8 | 597 | "0r47fm94wa6qrhp8cc1zzkjrxc32rnagfn9m9ga4dm6p6ydw4c8b")))) |
a06b9b50 | 598 | (build-system haskell-build-system) |
8d04a5c9 RW |
599 | (native-inputs |
600 | `(("ghc-quickcheck" ,ghc-quickcheck) | |
601 | ("ghc-hspec-meta" ,ghc-hspec-meta))) | |
78724a5a | 602 | (home-page "https://hspec.github.io/") |
a06b9b50 RW |
603 | (synopsis "Automatically discover and run Hspec tests") |
604 | (description "hspec-discover is a tool which automatically discovers and | |
605 | runs Hspec tests.") | |
606 | (license license:expat))) | |
607 | ||
608 | (define-public ghc-hspec-core | |
609 | (package | |
610 | (name "ghc-hspec-core") | |
a777c69a | 611 | (version "2.7.1") |
a06b9b50 RW |
612 | (source |
613 | (origin | |
614 | (method url-fetch) | |
3b8e4774 RW |
615 | (uri (string-append "https://hackage.haskell.org/package/hspec-core/" |
616 | "hspec-core-" version ".tar.gz")) | |
a06b9b50 RW |
617 | (sha256 |
618 | (base32 | |
a777c69a | 619 | "08vk8588lap00hsln8zl64dazbb28lzk4b4h5vnm7xvhg7r21k1c")))) |
a06b9b50 RW |
620 | (build-system haskell-build-system) |
621 | (arguments `(#:tests? #f)) ; FIXME: testing libraries are missing. | |
622 | (inputs | |
623 | `(("ghc-setenv" ,ghc-setenv) | |
624 | ("ghc-ansi-terminal" ,ghc-ansi-terminal) | |
3b8e4774 | 625 | ("ghc-clock" ,ghc-clock) |
a06b9b50 RW |
626 | ("ghc-quickcheck-io" ,ghc-quickcheck-io) |
627 | ("ghc-hunit" ,ghc-hunit) | |
628 | ("ghc-quickcheck" ,ghc-quickcheck) | |
629 | ("ghc-hspec-expectations" ,ghc-hspec-expectations) | |
a777c69a TS |
630 | ("ghc-silently" ,ghc-silently) |
631 | ("ghc-tf-random" ,ghc-tf-random))) | |
78724a5a | 632 | (home-page "https://hspec.github.io/") |
a06b9b50 RW |
633 | (synopsis "Testing framework for Haskell") |
634 | (description "This library exposes internal types and functions that can | |
635 | be used to extend Hspec's functionality.") | |
636 | (license license:expat))) | |
637 | ||
638 | (define-public ghc-hspec-meta | |
639 | (package | |
640 | (name "ghc-hspec-meta") | |
ad128630 | 641 | (version "2.6.0") |
a06b9b50 RW |
642 | (source |
643 | (origin | |
644 | (method url-fetch) | |
31caca65 RW |
645 | (uri (string-append "https://hackage.haskell.org/package/hspec-meta/" |
646 | "hspec-meta-" version ".tar.gz")) | |
a06b9b50 RW |
647 | (sha256 |
648 | (base32 | |
ad128630 | 649 | "1n1a4633wfivylglji8920f67mx7qz8j4q58n8p7dxk6yg4h3mz6")))) |
a06b9b50 RW |
650 | (build-system haskell-build-system) |
651 | (inputs | |
652 | `(("ghc-quickcheck" ,ghc-quickcheck) | |
653 | ("ghc-hunit" ,ghc-hunit) | |
654 | ("ghc-ansi-terminal" ,ghc-ansi-terminal) | |
ad128630 | 655 | ("ghc-clock" ,ghc-clock) |
a06b9b50 RW |
656 | ("ghc-hspec-expectations" ,ghc-hspec-expectations) |
657 | ("ghc-setenv" ,ghc-setenv) | |
658 | ("ghc-random" ,ghc-random) | |
659 | ("ghc-quickcheck-io" ,ghc-quickcheck-io))) | |
78724a5a | 660 | (home-page "https://hspec.github.io/") |
a06b9b50 RW |
661 | (synopsis "Version of Hspec to test Hspec itself") |
662 | (description "This library provides a stable version of Hspec which is | |
663 | used to test the in-development version of Hspec.") | |
664 | (license license:expat))) | |
665 | ||
666 | (define-public ghc-hspec | |
667 | (package | |
668 | (name "ghc-hspec") | |
abbe5a2a | 669 | (version "2.7.1") |
a06b9b50 RW |
670 | (source |
671 | (origin | |
672 | (method url-fetch) | |
c2c8d998 RW |
673 | (uri (string-append "https://hackage.haskell.org/package/hspec/" |
674 | "hspec-" version ".tar.gz")) | |
a06b9b50 RW |
675 | (sha256 |
676 | (base32 | |
abbe5a2a | 677 | "1x8rcr7j1azcaw0fg1xzp8j0gr4ias36z09aj24i4xp8pnyfp341")))) |
a06b9b50 RW |
678 | (build-system haskell-build-system) |
679 | (inputs | |
680 | `(("ghc-hspec-core" ,ghc-hspec-core) | |
681 | ("hspec-discover" ,hspec-discover) | |
682 | ("ghc-hspec-expectations" ,ghc-hspec-expectations) | |
683 | ("ghc-quickcheck" ,ghc-quickcheck) | |
684 | ("ghc-hunit" ,ghc-hunit) | |
685 | ("ghc-stringbuilder" ,ghc-stringbuilder) | |
686 | ("ghc-hspec-meta" ,ghc-hspec-meta))) | |
78724a5a | 687 | (home-page "https://hspec.github.io/") |
a06b9b50 RW |
688 | (synopsis "Testing Framework for Haskell") |
689 | (description "This library provides the Hspec testing framework for | |
690 | Haskell, inspired by the Ruby library RSpec.") | |
691 | (license license:expat))) | |
692 | ||
693 | (define-public ghc-hspec-contrib | |
694 | (package | |
695 | (name "ghc-hspec-contrib") | |
bb148db8 | 696 | (version "0.5.1") |
a06b9b50 RW |
697 | (source (origin |
698 | (method url-fetch) | |
699 | (uri (string-append "https://hackage.haskell.org/package/" | |
700 | "hspec-contrib/hspec-contrib-" | |
701 | version ".tar.gz")) | |
702 | (sha256 | |
703 | (base32 | |
bb148db8 | 704 | "0hhzxaa3fxz5mk5qcsrnfr98a7bn3szx2ydgr0x9mbqmm1jg06rc")))) |
a06b9b50 RW |
705 | (build-system haskell-build-system) |
706 | (inputs | |
707 | `(("ghc-hspec-core" ,ghc-hspec-core) | |
708 | ("ghc-hunit" ,ghc-hunit) | |
709 | ("ghc-hspec" ,ghc-hspec) | |
710 | ("ghc-quickcheck" ,ghc-quickcheck))) | |
711 | (native-inputs | |
712 | `(("hspec-discover" ,hspec-discover))) | |
78724a5a | 713 | (home-page "https://hspec.github.io/") |
a06b9b50 RW |
714 | (synopsis "Contributed functionality for Hspec") |
715 | (description | |
716 | "This package provides contributed Hspec extensions.") | |
717 | (license license:expat))) | |
718 | ||
719 | (define-public ghc-hspec-expectations | |
720 | (package | |
721 | (name "ghc-hspec-expectations") | |
15fb81e5 | 722 | (version "0.8.2") |
a06b9b50 RW |
723 | (source |
724 | (origin | |
725 | (method url-fetch) | |
15fb81e5 RW |
726 | (uri (string-append "https://hackage.haskell.org/package/" |
727 | "hspec-expectations/hspec-expectations-" | |
728 | version ".tar.gz")) | |
a06b9b50 RW |
729 | (sha256 |
730 | (base32 | |
15fb81e5 | 731 | "1vxl9zazbaapijr6zmcj72j9wf7ka1pirrjbwddwwddg3zm0g5l1")))) |
a06b9b50 | 732 | (build-system haskell-build-system) |
15fb81e5 RW |
733 | ;; Tests depend on ghc-nanospec. |
734 | (arguments '(#:tests? #f)) | |
a06b9b50 RW |
735 | (inputs `(("ghc-hunit" ,ghc-hunit))) |
736 | (home-page "https://github.com/sol/hspec-expectations") | |
737 | (synopsis "Catchy combinators for HUnit") | |
738 | (description "This library provides catchy combinators for HUnit, see | |
739 | @uref{https://github.com/sol/hspec-expectations#readme, the README}.") | |
740 | (license license:expat))) | |
a54b7441 RW |
741 | |
742 | (define-public ghc-nanospec | |
743 | (package | |
744 | (name "ghc-nanospec") | |
745 | (version "0.2.2") | |
746 | (source | |
747 | (origin | |
748 | (method url-fetch) | |
749 | (uri (string-append "https://hackage.haskell.org/package/" | |
750 | "nanospec/nanospec-" | |
751 | version ".tar.gz")) | |
752 | (sha256 | |
753 | (base32 | |
754 | "1rcmhl9bhyfvanalnf1r86wkx6rq6wdvagnw1h011jcnnb1cq56g")))) | |
755 | (build-system haskell-build-system) | |
756 | (inputs | |
757 | `(("ghc-hspec" ,ghc-hspec) | |
758 | ("ghc-silently" ,ghc-silently))) | |
759 | (home-page "https://github.com/hspec/nanospec#readme") | |
760 | (synopsis "Lightweight implementation of a subset of Hspec's API") | |
761 | (description | |
762 | "Nanospec is a lightweight implementation of a subset of Hspec's API with | |
763 | minimal dependencies.") | |
764 | (license license:expat))) | |
47a6582b | 765 | |
766 | (define-public ghc-crypto-cipher-tests | |
767 | (package | |
768 | (name "ghc-crypto-cipher-tests") | |
769 | (version "0.0.11") | |
770 | (source | |
771 | (origin | |
772 | (method url-fetch) | |
773 | (uri (string-append "https://hackage.haskell.org/package/" | |
774 | "crypto-cipher-tests-" version "/" | |
775 | "crypto-cipher-tests-" version ".tar.gz")) | |
776 | (sha256 | |
777 | (base32 | |
778 | "19wqignlq90qwpam01hnmmrxaxh5lkax9l1l6rlbi4a07nvp1dnz")))) | |
779 | (build-system haskell-build-system) | |
780 | (inputs `(("ghc-quickcheck" ,ghc-quickcheck) | |
47a6582b | 781 | ("ghc-hunit" ,ghc-hunit) |
782 | ("ghc-test-framework" ,ghc-test-framework) | |
783 | ("ghc-test-framework-quickcheck2" ,ghc-test-framework-quickcheck2) | |
784 | ("ghc-test-framework-hunit" ,ghc-test-framework-hunit) | |
785 | ("ghc-byteable" ,ghc-byteable) | |
786 | ("ghc-securemem" ,ghc-securemem) | |
787 | ("ghc-crypto-cipher-types" ,ghc-crypto-cipher-types))) | |
788 | (home-page "https://github.com/vincenthz/hs-crypto-cipher") | |
789 | (synopsis "Generic cryptography cipher tests for Haskell") | |
790 | (description " This Haskell package contains generic tests for | |
791 | cryptographic ciphers, and is used by the test runners of various Haskell | |
792 | implementations of cryptographic ciphers.") | |
793 | (license license:bsd-3))) | |
2c4e4bc6 JM |
794 | |
795 | (define-public ghc-hedgehog | |
796 | (package | |
797 | (name "ghc-hedgehog") | |
798 | (version "0.6.1") | |
799 | (source | |
800 | (origin | |
801 | (method url-fetch) | |
802 | (uri (string-append | |
803 | "mirror://hackage/package/hedgehog/hedgehog-" | |
804 | version | |
805 | ".tar.gz")) | |
806 | (sha256 | |
807 | (base32 | |
808 | "0xz10ycdm5vk9nrcym1fi83k19frfwqz18bz8bnpzwvaj0j41yfj")))) | |
809 | (build-system haskell-build-system) | |
810 | (inputs | |
91732735 | 811 | `(("ghc-ansi-terminal" ,ghc-ansi-terminal) |
2c4e4bc6 JM |
812 | ("ghc-async" ,ghc-async) |
813 | ("ghc-concurrent-output" ,ghc-concurrent-output) | |
814 | ("ghc-exceptions" ,ghc-exceptions) | |
815 | ("ghc-lifted-async" ,ghc-lifted-async) | |
816 | ("ghc-mmorph" ,ghc-mmorph) | |
817 | ("ghc-monad-control" ,ghc-monad-control) | |
818 | ("ghc-pretty-show" ,ghc-pretty-show) | |
819 | ("ghc-primitive" ,ghc-primitive) | |
820 | ("ghc-random" ,ghc-random) | |
821 | ("ghc-resourcet" ,ghc-resourcet) | |
822 | ("ghc-semigroups" ,ghc-semigroups) | |
2c4e4bc6 JM |
823 | ("ghc-th-lift" ,ghc-th-lift) |
824 | ("ghc-transformers-base" ,ghc-transformers-base) | |
825 | ("ghc-wl-pprint-annotated" | |
826 | ,ghc-wl-pprint-annotated))) | |
827 | (home-page "https://hedgehog.qa") | |
828 | (synopsis "Property-based testing in the spirt of QuickCheck") | |
829 | (description | |
830 | "Hedgehog is a property-based testing system, in the spirit of | |
831 | QuickCheck. Hedgehog uses integrated shrinking, so shrinks obey the invariants | |
832 | of generated values by construction. | |
833 | ||
834 | To get started quickly, see the examples: | |
835 | @uref{https://github.com/hedgehogqa/haskell-hedgehog/tree/master/hedgehog-example}") | |
836 | (license license:bsd-3))) | |
1ba35ab7 RV |
837 | |
838 | (define-public cabal-doctest | |
839 | (package | |
840 | (name "cabal-doctest") | |
ff25ccf4 | 841 | (version "1.0.8") |
1ba35ab7 RV |
842 | (source |
843 | (origin | |
844 | (method url-fetch) | |
845 | (uri (string-append "https://hackage.haskell.org/package/" | |
846 | "cabal-doctest/cabal-doctest-" | |
847 | version ".tar.gz")) | |
848 | (sha256 | |
849 | (base32 | |
ff25ccf4 | 850 | "03if74imlhhk7m56nci5f1wclniwqdmwl4hl177040j1gnlac9i0")))) |
1ba35ab7 | 851 | (build-system haskell-build-system) |
1ba35ab7 RV |
852 | (home-page "https://github.com/phadej/cabal-doctest") |
853 | (synopsis "Setup.hs helper for running doctests") | |
854 | (description | |
855 | "To properly work, the @code{doctest} package needs plenty of | |
856 | configuration. This library provides the common bits for writing custom | |
857 | @file{Setup.hs} files.") | |
858 | (license license:bsd-3))) |