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, 2018 Ricardo Wurmus <rekado@elephly.net>
6 ;;; Copyright © 2016 ng0 <ng0@n0.is>
7 ;;; Copyright © 2016 David Craven <david@craven.ch>
8 ;;; Copyright © 2017 Danny Milosavljevic <dannym@scratchpost.org>
9 ;;; Copyright © 2017 rsiddharth <s@ricketyspace.net>
10 ;;; Copyright © 2017, 2018 Tobias Geerinckx-Rice <me@tobias.gr>
11 ;;; Copyright © 2018 Tonton <tonton@riseup.net>
12 ;;; Copyright © 2018 Arun Isaac <arunisaac@systemreboot.net>
14 ;;; This file is part of GNU Guix.
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.
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.
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/>.
29 (define-module (gnu packages haskell-check)
30 #:use-module (gnu packages)
31 #:use-module (gnu packages haskell)
32 #:use-module (gnu packages haskell-crypto)
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))
39 (define-public ghc-tasty-ant-xml
41 (name "ghc-tasty-ant-xml")
47 "https://hackage.haskell.org/package/tasty-ant-xml/tasty-ant-xml-"
52 "0v0gsb90kh6hwlgxbclzawsskywc6yf7n8xhiifia97l4y0yx2m8"))))
53 (build-system haskell-build-system)
55 `(("ghc-generic-deriving" ,ghc-generic-deriving)
58 ("ghc-tagged" ,ghc-tagged)
59 ("ghc-tasty" ,ghc-tasty)))
61 "https://github.com/ocharles/tasty-ant-xml")
63 "Render tasty output to XML for Jenkins")
65 "A tasty ingredient to output test results in XML, using the Ant
66 schema. This XML can be consumed by the Jenkins continuous integration
68 (license license:bsd-3)))
70 (define-public ghc-tasty-smallcheck
72 (name "ghc-tasty-smallcheck")
78 "https://hackage.haskell.org/package/tasty-smallcheck/tasty-smallcheck-"
83 "1n66ngzllf3xrlqykwszlkwsi96n5nkm7xbpfq7774vpvfnafjri"))))
84 (build-system haskell-build-system)
86 `(("ghc-tasty" ,ghc-tasty)
87 ("ghc-smallcheck" ,ghc-smallcheck)
88 ("ghc-async" ,ghc-async)
89 ("ghc-tagged" ,ghc-tagged)))
90 (home-page "https://documentup.com/feuerbach/tasty")
91 (synopsis "SmallCheck support for the Tasty test framework")
92 (description "This package provides SmallCheck support for the Tasty
93 Haskell test framework.")
94 (license license:bsd-3)))
96 (define-public ghc-tasty-quickcheck
98 (name "ghc-tasty-quickcheck")
104 "https://hackage.haskell.org/package/tasty-quickcheck/"
105 "tasty-quickcheck-" version ".tar.gz"))
108 "0vr6szbbz3s5461i0zr8zpq347zfvidfzv5gf3xwxhm0yk731z8h"))))
109 (build-system haskell-build-system)
111 `(("ghc-quickcheck" ,ghc-quickcheck)
112 ("ghc-tagged" ,ghc-tagged)
113 ("ghc-tasty" ,ghc-tasty)
114 ("ghc-random" ,ghc-random)
115 ("ghc-ansi-terminal" ,ghc-ansi-terminal)
116 ("ghc-tasty-hunit" ,ghc-tasty-hunit)
117 ("ghc-pcre-light" ,ghc-pcre-light)))
118 (home-page "http://documentup.com/feuerbach/tasty")
119 (synopsis "QuickCheck support for the Tasty test framework")
120 (description "This package provides QuickCheck support for the Tasty
121 Haskell test framework.")
122 (license license:expat)))
124 (define-public ghc-tasty-golden
126 (name "ghc-tasty-golden")
132 "https://hackage.haskell.org/package/tasty-golden/tasty-golden-"
137 "0k3ibjhjc9vcwzrjnl4rnwvfm8l81q347nb7dgvcib6n5wm3s404"))))
138 (build-system haskell-build-system)
140 `(("ghc-temporary" ,ghc-temporary)
141 ("ghc-tasty" ,ghc-tasty)
142 ("ghc-optparse-applicative" ,ghc-optparse-applicative)
143 ("ghc-tagged" ,ghc-tagged)
144 ("ghc-async" ,ghc-async)
145 ("ghc-tasty-hunit" ,ghc-tasty-hunit)
146 ("ghc-temporary-rc" ,ghc-temporary-rc)))
148 "https://github.com/feuerbach/tasty-golden")
149 (synopsis "Golden tests support for tasty")
151 "This package provides support for @code{golden testing}. A @dfn{golden
152 test} is an IO action that writes its result to a file. To pass the test, this
153 output file should be identical to the corresponding @code{golden} file, which
154 contains the correct result for the test.")
155 (license license:expat)))
157 ;; This package builds `clock` without tests, since the tests rely on tasty
158 ;; and tasty-quickcheck, which in turn require clock to build.
159 (define ghc-clock-bootstrap
161 (name "ghc-clock-bootstrap")
167 "https://hackage.haskell.org/package/"
169 "clock-" version ".tar.gz"))
171 (base32 "1ncph7vi2q6ywwc8ysxl1ibw6i5dwfvln88ssfazk8jgpj4iyykw"))))
172 (build-system haskell-build-system)
173 (arguments `(#:tests? #f)) ;; Testing suite depends on tasty and
174 ;; tasty-quickcheck, which need clock to build.
175 (home-page "https://hackage.haskell.org/package/clock")
176 (synopsis "High-resolution clock for Haskell")
177 (description "A package for convenient access to high-resolution clock and
178 timer functions of different operating systems via a unified API.")
179 (license license:bsd-3)))
181 (define-public ghc-tasty
189 "https://hackage.haskell.org/package/tasty/tasty-"
194 "14riid753hjqr6lca1kgxpnvq0wykf0k3qc5jpag42hh8bszav22"))))
195 (build-system haskell-build-system)
197 `(("ghc-stm" ,ghc-stm)
198 ("ghc-tagged" ,ghc-tagged)
199 ("ghc-regex-tdfa" ,ghc-regex-tdfa)
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 ("ghc-wcwidth" ,ghc-wcwidth-bootstrap)))
206 (home-page "http://documentup.com/feuerbach/tasty")
207 (synopsis "Modern and extensible testing framework")
208 (description "Tasty is a modern testing framework for Haskell. It lets
209 you combine your unit tests, golden tests, QuickCheck/SmallCheck properties,
210 and any other types of tests into a single test suite.")
211 (license license:expat)))
213 (define-public ghc-tasty-hunit
215 (name "ghc-tasty-hunit")
221 "https://hackage.haskell.org/package/tasty-hunit/tasty-hunit-"
226 "0j3hgga6c3s8h5snzivb8a75h96207ia2rlbxzj07xbf4zpkp44g"))))
227 (build-system haskell-build-system)
229 `(("ghc-call-stack" ,ghc-call-stack-boot)
230 ("ghc-tasty" ,ghc-tasty)))
231 (home-page "http://documentup.com/feuerbach/tasty")
232 (synopsis "HUnit support for the Tasty test framework")
233 (description "This package provides HUnit support for the Tasty Haskell
235 (license license:expat)))
237 (define-public ghc-tasty-kat
239 (name "ghc-tasty-kat")
243 (uri (string-append "https://hackage.haskell.org/package/"
244 "tasty-kat/tasty-kat-" version ".tar.gz"))
247 "14yvlpli6cv6bn3kh8mlfp4x1l6ns4fvmfv6hmj75cvxyzq029d7"))))
248 (build-system haskell-build-system)
250 `(("ghc-tasty" ,ghc-tasty)
251 ("ghc-tasty-quickcheck" ,ghc-tasty-quickcheck)
252 ("ghc-tasty-hunit" ,ghc-tasty-hunit)))
253 (home-page "https://github.com/vincenthz/tasty-kat")
254 (synopsis "Known Answer Tests (KAT) framework for tasty")
256 "This package provides a @dfn{Known Answer Tests} (KAT) framework for
258 (license license:expat)))
260 (define-public ghc-tasty-th
262 (name "ghc-tasty-th")
268 "https://hackage.haskell.org/package/tasty-th/tasty-th-"
272 "0b2ivrw2257m4cy4rjnkwqlarh83j1y3zywnmaqqqbvy667sqnj3"))))
273 (build-system haskell-build-system)
275 `(("ghc-haskell-src-exts" ,ghc-haskell-src-exts)
276 ("ghc-tasty" ,ghc-tasty)
277 ("ghc-tasty-hunit" ,ghc-tasty-hunit)))
278 (home-page "https://github.com/bennofs/tasty-th")
279 (synopsis "Automatically generate tasty TestTrees")
281 "Tasty-th automatically generates tasty TestTrees from functions of the
282 current module, using TemplateHaskell. This is a fork the original
283 test-framework-th package, modified to work with tasty instead of
285 (license license:bsd-3)))
287 (define-public ghc-tasty-rerun
289 (name "ghc-tasty-rerun")
294 "https://hackage.haskell.org/package/tasty-rerun/"
295 "tasty-rerun-" version ".tar.gz"))
298 "05lp4zy6lwd916snq6hs43848n62j9vdfl3s8sfivqydrax0vvd8"))))
299 (build-system haskell-build-system)
301 `(("ghc-optparse-applicative" ,ghc-optparse-applicative)
302 ("ghc-reducers" ,ghc-reducers)
303 ("ghc-split" ,ghc-split)
305 ("ghc-tagged" ,ghc-tagged)
306 ("ghc-tasty" ,ghc-tasty)))
307 (home-page "https://github.com/ocharles/tasty-rerun")
308 (synopsis "Run tests by filtering the test tree")
309 (description "This package adds the ability to run tests by filtering the
310 test tree based on the result of a previous test run. You can use this to run
311 only those tests that failed in the last run, or to only run the tests that have
312 been added since previous test run.")
313 (license license:bsd-3)))
315 (define-public ghc-tasty-expected-failure
317 (name "ghc-tasty-expected-failure")
322 (uri (string-append "https://hackage.haskell.org/package/"
323 "tasty-expected-failure/tasty-expected-failure-"
327 "1i2s809m644b7hgiblqay9j364r3fjj1rwbrahsn1pgr5q6mr6ji"))))
328 (build-system haskell-build-system)
330 `(("ghc-tagged" ,ghc-tagged)
331 ("ghc-tasty" ,ghc-tasty)))
332 (home-page "http://github.com/nomeata/tasty-expected-failure")
333 (synopsis "Mark tasty tests as failure expected")
335 "With the function @code{Test.Tasty.ExpectedFailure.expectFail} in the
336 provided module @code{Test.Tasty.ExpectedFailure}, you can mark that you
337 expect test cases to fail, and not to pass. This can be used for test-driven
339 (license license:expat)))
341 (define-public ghc-quickcheck-instances
343 (name "ghc-quickcheck-instances")
349 "https://hackage.haskell.org/package/"
350 "quickcheck-instances/quickcheck-instances-"
354 "1bh1pzz5fdcqvzdcirqxna6fnjms02min5md716299g5niz46w55"))))
355 (build-system haskell-build-system)
358 ("1" "1sngfq3v71bvgjsl8cj5kh65m3fziwy8dkvwjzs0kxfrzr87faly")))
360 `(("ghc-quickcheck" ,ghc-quickcheck)
361 ("ghc-base-compat" ,ghc-base-compat)
362 ("ghc-case-insensitive" ,ghc-case-insensitive)
363 ("ghc-hashable" ,ghc-hashable)
364 ("ghc-old-time" ,ghc-old-time)
365 ("ghc-scientific" ,ghc-scientific)
366 ("ghc-tagged" ,ghc-tagged)
367 ("ghc-text" ,ghc-text)
368 ("ghc-transformers-compat" ,ghc-transformers-compat)
369 ("ghc-unordered-containers" ,ghc-unordered-containers)
370 ("ghc-uuid-types" ,ghc-uuid-types)
371 ("ghc-vector" ,ghc-vector)))
372 (home-page "https://github.com/aslatter/qc-instances")
373 (synopsis "Common quickcheck instances")
374 (description "This package provides QuickCheck instances for types
375 provided by the Haskell Platform.")
376 (license license:bsd-3)))
378 (define-public ghc-quickcheck-unicode
380 (name "ghc-quickcheck-unicode")
386 "https://hackage.haskell.org/package/quickcheck-unicode/"
387 "quickcheck-unicode-" version ".tar.gz"))
390 "0s43s1bzbg3gwsjgm7fpyksd1339f0m26dlw2famxwyzgvm0a80k"))))
391 (build-system haskell-build-system)
392 (inputs `(("ghc-quickcheck" ,ghc-quickcheck)))
394 "https://github.com/bos/quickcheck-unicode")
395 (synopsis "Generator functions Unicode-related tests")
396 (description "This package provides generator and shrink functions for
397 testing Unicode-related software.")
398 (license license:bsd-3)))
400 (define-public ghc-quickcheck-io
402 (name "ghc-quickcheck-io")
408 "https://hackage.haskell.org/package/quickcheck-io/quickcheck-io-"
413 "08k4v7pkgjf30pv5j2dfv1gqv6hclxlniyq2sps8zq4zswcr2xzv"))))
414 (build-system haskell-build-system)
416 `(("ghc-quickcheck" ,ghc-quickcheck)
417 ("ghc-hunit" ,ghc-hunit)))
419 "https://github.com/hspec/quickcheck-io#readme")
420 (synopsis "Use HUnit assertions as QuickCheck properties")
421 (description "This package provides an orphan instance that allows you to
422 use HUnit assertions as QuickCheck properties.")
423 (license license:expat)))
425 (define-public ghc-quickcheck
427 (name "ghc-quickcheck")
429 (outputs '("out" "doc"))
434 "https://hackage.haskell.org/package/QuickCheck/QuickCheck-"
439 "0xhqk35fkzlbjcqbabg6962jkv8d688nzmz7ng4bm84x2d95d328"))))
440 (build-system haskell-build-system)
442 `(#:tests? #f)) ; FIXME: currently missing libraries used for tests.
444 `(("ghc-random" ,ghc-random)
445 ("ghc-tf-random" ,ghc-tf-random)))
446 (home-page "https://github.com/nick8325/quickcheck")
447 (synopsis "Automatic testing of Haskell programs")
449 "QuickCheck is a library for random testing of program properties. The
450 programmer provides a specification of the program, in the form of properties
451 which functions should satisfy, and QuickCheck then tests that the properties
452 hold in a large number of randomly generated cases. Specifications are
453 expressed in Haskell, using combinators defined in the QuickCheck library.")
454 (license license:bsd-3)))
456 (define-public ghc-test-framework
458 (name "ghc-test-framework")
463 (uri (string-append "https://hackage.haskell.org/package/test-framework/"
464 "test-framework-" version ".tar.gz"))
467 "1hhacrzam6b8f10hyldmjw8pb7frdxh04rfg3farxcxwbnhwgbpm"))))
468 (build-system haskell-build-system)
470 `(#:tests? #f ; FIXME: Tests do not build.
472 (modify-phases %standard-phases
473 (add-before 'configure 'update-constraints
475 (substitute* "test-framework.cabal"
476 (("QuickCheck >= 2\\.3 && < 2\\.10")
477 "QuickCheck >= 2.3 && < 2.12")))))))
479 `(("ghc-hunit" ,ghc-hunit)
480 ("ghc-quickcheck" ,ghc-quickcheck)))
482 `(("ghc-ansi-terminal" ,ghc-ansi-terminal)
483 ("ghc-ansi-wl-pprint" ,ghc-ansi-wl-pprint)
484 ("ghc-hostname" ,ghc-hostname)
485 ("ghc-old-locale" ,ghc-old-locale)
486 ("ghc-random" ,ghc-random)
487 ("ghc-regex-posix" ,ghc-regex-posix)
489 ("ghc-libxml" ,ghc-libxml)
490 ("ghc-semigroups" ,ghc-semigroups-bootstrap)))
491 (home-page "https://batterseapower.github.io/test-framework/")
492 (synopsis "Framework for running and organising tests")
494 "This package allows tests such as QuickCheck properties and HUnit test
495 cases to be assembled into test groups, run in parallel (but reported in
496 deterministic order, to aid diff interpretation) and filtered and controlled
497 by command line options. All of this comes with colored test output, progress
498 reporting and test statistics output.")
499 (license license:bsd-3)))
501 (define-public ghc-test-framework-hunit
503 (name "ghc-test-framework-hunit")
508 (uri (string-append "https://hackage.haskell.org/package/"
509 "test-framework-hunit/test-framework-hunit-"
513 "1y0b6vg8nfm43v90lxxcydhi6qlxhfy4vpxbzm5ic2w55bh8xjwm"))))
514 (build-system haskell-build-system)
517 ("3" "0i9mlalv7cl1iq43ld5myrnpszq5rxmd79hk495dcb08rglhgl3z")))
519 `(("ghc-extensible-exceptions" ,ghc-extensible-exceptions)
520 ("ghc-hunit" ,ghc-hunit)
521 ("ghc-test-framework" ,ghc-test-framework)))
522 (home-page "https://batterseapower.github.io/test-framework/")
523 (synopsis "HUnit support for test-framework")
525 "This package provides HUnit support for the test-framework package.")
526 (license license:bsd-3)))
528 (define-public ghc-test-framework-quickcheck2
530 (name "ghc-test-framework-quickcheck2")
535 (uri (string-append "https://hackage.haskell.org/package/"
536 "test-framework-quickcheck2/"
537 "test-framework-quickcheck2-" version ".tar.gz"))
540 "0vj834337r6jzr3258cv68ly2sv5999mklpsrfngyk51kywsyqyp"))))
541 (build-system haskell-build-system)
544 ("1" "147ngmfdkskyg7mwsp5w73a4dbx3rp5s38bci3z03kn1m093lxff")))
546 `(("ghc-extensible-exceptions" ,ghc-extensible-exceptions)
547 ("ghc-quickcheck" ,ghc-quickcheck)
548 ("ghc-random" ,ghc-random)
549 ("ghc-test-framework" ,ghc-test-framework)))
550 (home-page "https://batterseapower.github.io/test-framework/")
551 (synopsis "QuickCheck2 support for test-framework")
553 "This package provides QuickCheck2 support for the test-framework
555 (license license:bsd-3)))
557 (define-public ghc-test-framework-th
559 (name "ghc-test-framework-th")
564 (uri (string-append "https://hackage.haskell.org/package/"
565 "test-framework-th-" version "/"
566 "test-framework-th-" version ".tar.gz"))
569 "12lw7yj02jb9s0i7rb98jjam43j2h0gzmnbj9zi933fx7sg0sy4b"))))
570 (build-system haskell-build-system)
572 `(("ghc-test-framework" ,ghc-test-framework)
573 ("ghc-language-haskell-extract" ,ghc-language-haskell-extract)
574 ("ghc-haskell-src-exts" ,ghc-haskell-src-exts)
575 ("ghc-regex-posix" ,ghc-regex-posix)))
576 (home-page "https://github.com/finnsson/test-generator")
577 (synopsis "Auto generate the HUnit- and Quickcheck-bulk-code
578 using Template Haskell")
579 (description "This library contains two functions:
580 @code{defaultMainGenerator} and @code{testGroupGenerator}.
582 @code{defaultMainGenerator} will extract all functions beginning with
583 @code{case_}, @code{prop_}, or @code{test_} in the module and put them in a
586 @code{testGroupGenerator} is like @code{defaultMainGenerator} but without
587 @code{defaultMain}. It is useful if you need a function for the testgroup
588 \(e.g. if you want to be able to call the testgroup from another module).")
589 (license license:bsd-3)))
591 (define-public ghc-hunit
595 (outputs '("out" "doc"))
599 (uri (string-append "https://hackage.haskell.org/package/HUnit/"
600 "HUnit-" version ".tar.gz"))
603 "1pnhwqq5v8h48gbp3ibv3skfj25mf4zs5svxcavq93p9cswycj3l"))))
604 (build-system haskell-build-system)
606 ;; We cannot use ghc-call-stack there, because it depends on
607 ;; ghc-nanospec, which depends on ghc-hunit.
608 `(("ghc-call-stack" ,ghc-call-stack-boot)))
609 (home-page "http://hunit.sourceforge.net/")
610 (synopsis "Unit testing framework for Haskell")
612 "HUnit is a unit testing framework for Haskell, inspired by the
613 JUnit tool for Java.")
614 (license license:bsd-3)))
616 (define-public hspec-discover
618 (name "hspec-discover")
623 (uri (string-append "https://hackage.haskell.org/package/"
624 "hspec-discover/hspec-discover-"
628 "04aidzi91ccr9bygmfkjzshz34z9vh8wvqj4zinx2clxq6r7gqfz"))))
629 (build-system haskell-build-system)
631 `(("ghc-quickcheck" ,ghc-quickcheck)
632 ("ghc-hspec-meta" ,ghc-hspec-meta)))
633 (home-page "https://hspec.github.io/")
634 (synopsis "Automatically discover and run Hspec tests")
635 (description "hspec-discover is a tool which automatically discovers and
637 (license license:expat)))
639 (define-public ghc-hspec-core
641 (name "ghc-hspec-core")
646 (uri (string-append "https://hackage.haskell.org/package/hspec-core/"
647 "hspec-core-" version ".tar.gz"))
650 "1vfrqlpn32s9wiykmkxbnrnd5p56yznw20pf8fwzw78ar4wpz55x"))))
651 (build-system haskell-build-system)
652 (arguments `(#:tests? #f)) ; FIXME: testing libraries are missing.
654 `(("ghc-setenv" ,ghc-setenv)
655 ("ghc-ansi-terminal" ,ghc-ansi-terminal)
656 ("ghc-async" ,ghc-async)
657 ("ghc-clock" ,ghc-clock)
658 ("ghc-quickcheck-io" ,ghc-quickcheck-io)
659 ("ghc-hunit" ,ghc-hunit)
660 ("ghc-quickcheck" ,ghc-quickcheck)
661 ("ghc-hspec-expectations" ,ghc-hspec-expectations)
662 ("ghc-silently" ,ghc-silently)))
663 (home-page "https://hspec.github.io/")
664 (synopsis "Testing framework for Haskell")
665 (description "This library exposes internal types and functions that can
666 be used to extend Hspec's functionality.")
667 (license license:expat)))
669 (define-public ghc-hspec-meta
671 (name "ghc-hspec-meta")
676 (uri (string-append "https://hackage.haskell.org/package/hspec-meta/"
677 "hspec-meta-" version ".tar.gz"))
680 "0qmvk01n79j6skn79r6zalg2pd0x0nqqn9qn8mhg0pgyzcdnfc9b"))))
681 (build-system haskell-build-system)
683 `(("ghc-quickcheck" ,ghc-quickcheck)
684 ("ghc-hunit" ,ghc-hunit)
685 ("ghc-ansi-terminal" ,ghc-ansi-terminal)
686 ("ghc-async" ,ghc-async)
687 ("ghc-hspec-expectations" ,ghc-hspec-expectations)
688 ("ghc-setenv" ,ghc-setenv)
689 ("ghc-random" ,ghc-random)
690 ("ghc-quickcheck-io" ,ghc-quickcheck-io)))
691 (home-page "https://hspec.github.io/")
692 (synopsis "Version of Hspec to test Hspec itself")
693 (description "This library provides a stable version of Hspec which is
694 used to test the in-development version of Hspec.")
695 (license license:expat)))
697 (define-public ghc-hspec
704 (uri (string-append "https://hackage.haskell.org/package/hspec/"
705 "hspec-" version ".tar.gz"))
708 "1yv4k5b5kkig2q3waj28587sq28wms7wfav5a3lq4dra6jybimfm"))))
709 (build-system haskell-build-system)
711 `(("ghc-hspec-core" ,ghc-hspec-core)
712 ("hspec-discover" ,hspec-discover)
713 ("ghc-hspec-expectations" ,ghc-hspec-expectations)
714 ("ghc-quickcheck" ,ghc-quickcheck)
715 ("ghc-hunit" ,ghc-hunit)
716 ("ghc-stringbuilder" ,ghc-stringbuilder)
717 ("ghc-hspec-meta" ,ghc-hspec-meta)))
718 (home-page "https://hspec.github.io/")
719 (synopsis "Testing Framework for Haskell")
720 (description "This library provides the Hspec testing framework for
721 Haskell, inspired by the Ruby library RSpec.")
722 (license license:expat)))
724 (define-public ghc-hspec-contrib
726 (name "ghc-hspec-contrib")
730 (uri (string-append "https://hackage.haskell.org/package/"
731 "hspec-contrib/hspec-contrib-"
735 "13579xdqwbsy8k0vxdcvgy932d4p76mij1rzkzbpqbspfn7399yv"))))
736 (build-system haskell-build-system)
738 `(("ghc-hspec-core" ,ghc-hspec-core)
739 ("ghc-hunit" ,ghc-hunit)
740 ("ghc-hspec" ,ghc-hspec)
741 ("ghc-quickcheck" ,ghc-quickcheck)))
743 `(("hspec-discover" ,hspec-discover)))
744 (home-page "https://hspec.github.io/")
745 (synopsis "Contributed functionality for Hspec")
747 "This package provides contributed Hspec extensions.")
748 (license license:expat)))
750 (define-public ghc-hspec-expectations
752 (name "ghc-hspec-expectations")
757 (uri (string-append "https://hackage.haskell.org/package/"
758 "hspec-expectations/hspec-expectations-"
762 "1vxl9zazbaapijr6zmcj72j9wf7ka1pirrjbwddwwddg3zm0g5l1"))))
763 (build-system haskell-build-system)
764 ;; Tests depend on ghc-nanospec.
765 (arguments '(#:tests? #f))
766 (inputs `(("ghc-hunit" ,ghc-hunit)))
767 (home-page "https://github.com/sol/hspec-expectations")
768 (synopsis "Catchy combinators for HUnit")
769 (description "This library provides catchy combinators for HUnit, see
770 @uref{https://github.com/sol/hspec-expectations#readme, the README}.")
771 (license license:expat)))
773 (define-public ghc-nanospec
775 (name "ghc-nanospec")
780 (uri (string-append "https://hackage.haskell.org/package/"
785 "1rcmhl9bhyfvanalnf1r86wkx6rq6wdvagnw1h011jcnnb1cq56g"))))
786 (build-system haskell-build-system)
788 `(("ghc-hspec" ,ghc-hspec)
789 ("ghc-silently" ,ghc-silently)))
790 (home-page "https://github.com/hspec/nanospec#readme")
791 (synopsis "Lightweight implementation of a subset of Hspec's API")
793 "Nanospec is a lightweight implementation of a subset of Hspec's API with
794 minimal dependencies.")
795 (license license:expat)))
797 (define-public ghc-crypto-cipher-tests
799 (name "ghc-crypto-cipher-tests")
804 (uri (string-append "https://hackage.haskell.org/package/"
805 "crypto-cipher-tests-" version "/"
806 "crypto-cipher-tests-" version ".tar.gz"))
809 "19wqignlq90qwpam01hnmmrxaxh5lkax9l1l6rlbi4a07nvp1dnz"))))
810 (build-system haskell-build-system)
811 (inputs `(("ghc-quickcheck" ,ghc-quickcheck)
812 ("ghc-hunit" ,ghc-hunit)
813 ("ghc-test-framework" ,ghc-test-framework)
814 ("ghc-test-framework-quickcheck2" ,ghc-test-framework-quickcheck2)
815 ("ghc-test-framework-hunit" ,ghc-test-framework-hunit)
816 ("ghc-byteable" ,ghc-byteable)
817 ("ghc-securemem" ,ghc-securemem)
818 ("ghc-crypto-cipher-types" ,ghc-crypto-cipher-types)))
819 (home-page "https://github.com/vincenthz/hs-crypto-cipher")
820 (synopsis "Generic cryptography cipher tests for Haskell")
821 (description " This Haskell package contains generic tests for
822 cryptographic ciphers, and is used by the test runners of various Haskell
823 implementations of cryptographic ciphers.")
824 (license license:bsd-3)))