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 Nils Gillmann <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)
59 ("ghc-tagged" ,ghc-tagged)
60 ("ghc-tasty" ,ghc-tasty)))
62 "https://github.com/ocharles/tasty-ant-xml")
64 "Render tasty output to XML for Jenkins")
66 "A tasty ingredient to output test results in XML, using the Ant
67 schema. This XML can be consumed by the Jenkins continuous integration
69 (license license:bsd-3)))
71 (define-public ghc-tasty-smallcheck
73 (name "ghc-tasty-smallcheck")
79 "https://hackage.haskell.org/package/tasty-smallcheck/tasty-smallcheck-"
84 "1n66ngzllf3xrlqykwszlkwsi96n5nkm7xbpfq7774vpvfnafjri"))))
85 (build-system haskell-build-system)
87 `(("ghc-tasty" ,ghc-tasty)
88 ("ghc-smallcheck" ,ghc-smallcheck)
89 ("ghc-async" ,ghc-async)
90 ("ghc-tagged" ,ghc-tagged)))
91 (home-page "https://documentup.com/feuerbach/tasty")
92 (synopsis "SmallCheck support for the Tasty test framework")
93 (description "This package provides SmallCheck support for the Tasty
94 Haskell test framework.")
95 (license license:bsd-3)))
97 (define-public ghc-tasty-quickcheck
99 (name "ghc-tasty-quickcheck")
105 "https://hackage.haskell.org/package/tasty-quickcheck/"
106 "tasty-quickcheck-" version ".tar.gz"))
109 "15rjxib5jmjq0hzj47x15kgp3awc73va4cy1pmpf7k3hvfv4qprn"))))
110 (build-system haskell-build-system)
112 `(("ghc-quickcheck" ,ghc-quickcheck)
113 ("ghc-tagged" ,ghc-tagged)
114 ("ghc-tasty" ,ghc-tasty)
115 ("ghc-random" ,ghc-random)
116 ("ghc-ansi-terminal" ,ghc-ansi-terminal)
117 ("ghc-tasty-hunit" ,ghc-tasty-hunit)
118 ("ghc-pcre-light" ,ghc-pcre-light)))
119 (home-page "http://documentup.com/feuerbach/tasty")
120 (synopsis "QuickCheck support for the Tasty test framework")
121 (description "This package provides QuickCheck support for the Tasty
122 Haskell test framework.")
123 (license license:expat)))
125 (define-public ghc-tasty-golden
127 (name "ghc-tasty-golden")
133 "https://hackage.haskell.org/package/tasty-golden/tasty-golden-"
138 "0pcf5hsyp5mmbqn7krdm49jxpkjm6rb4j83j28f76h7q55dzm1wy"))))
139 (build-system haskell-build-system)
141 `(("ghc-temporary" ,ghc-temporary)
142 ("ghc-tasty" ,ghc-tasty)
144 ("ghc-optparse-applicative" ,ghc-optparse-applicative)
145 ("ghc-tagged" ,ghc-tagged)
146 ("ghc-async" ,ghc-async)
147 ("ghc-tasty-hunit" ,ghc-tasty-hunit)
148 ("ghc-temporary-rc" ,ghc-temporary-rc)))
150 "https://github.com/feuerbach/tasty-golden")
151 (synopsis "Golden tests support for tasty")
153 "This package provides support for 'golden testing'. A @dfn{golden test}
154 is an IO action that writes its result to a file. To pass the test, this
155 output file should be identical to the corresponding 'golden' file, which
156 contains the correct result for the test.")
157 (license license:expat)))
159 ;; This package builds `clock` without tests, since the tests rely on tasty
160 ;; and tasty-quickcheck, which in turn require clock to build.
161 (define ghc-clock-bootstrap
163 (name "ghc-clock-bootstrap")
169 "https://hackage.haskell.org/package/"
171 "clock-" version ".tar.gz"))
173 (base32 "1ncph7vi2q6ywwc8ysxl1ibw6i5dwfvln88ssfazk8jgpj4iyykw"))))
174 (build-system haskell-build-system)
175 (arguments `(#:tests? #f)) ;; Testing suite depends on tasty and
176 ;; tasty-quickcheck, which need clock to build.
177 (home-page "https://hackage.haskell.org/package/clock")
178 (synopsis "High-resolution clock for Haskell")
179 (description "A package for convenient access to high-resolution clock and
180 timer functions of different operating systems via a unified API.")
181 (license license:bsd-3)))
183 (define-public ghc-tasty
191 "https://hackage.haskell.org/package/tasty/tasty-"
196 "05pxjzgbgjdn7477xry0ssjrnmnsydqiq6nm6ck8n2da1baliqp0"))))
197 (build-system haskell-build-system)
199 `(("ghc-stm" ,ghc-stm)
201 ("ghc-tagged" ,ghc-tagged)
202 ("ghc-regex-tdfa" ,ghc-regex-tdfa)
203 ("ghc-regex-tdfa-rc" ,ghc-regex-tdfa-rc)
204 ("ghc-optparse-applicative" ,ghc-optparse-applicative)
205 ("ghc-unbounded-delays" ,ghc-unbounded-delays)
206 ("ghc-async" ,ghc-async)
207 ("ghc-ansi-terminal" ,ghc-ansi-terminal)
208 ("ghc-clock-bootstrap" ,ghc-clock-bootstrap)))
209 (home-page "http://documentup.com/feuerbach/tasty")
210 (synopsis "Modern and extensible testing framework")
211 (description "Tasty is a modern testing framework for Haskell. It lets
212 you combine your unit tests, golden tests, QuickCheck/SmallCheck properties,
213 and any other types of tests into a single test suite.")
214 (license license:expat)))
216 (define-public ghc-tasty-hunit
218 (name "ghc-tasty-hunit")
224 "https://hackage.haskell.org/package/tasty-hunit/tasty-hunit-"
229 "08qnxaw34wfnzi9irs1jd4d0zczqm3k5ffkd4zwhkz0dflmgq7mf"))))
230 (build-system haskell-build-system)
232 `(("ghc-tasty" ,ghc-tasty)))
233 (home-page "http://documentup.com/feuerbach/tasty")
234 (synopsis "HUnit support for the Tasty test framework")
235 (description "This package provides HUnit support for the Tasty Haskell
237 (license license:expat)))
239 (define-public ghc-tasty-kat
241 (name "ghc-tasty-kat")
245 (uri (string-append "https://hackage.haskell.org/package/"
246 "tasty-kat/tasty-kat-" version ".tar.gz"))
249 "14yvlpli6cv6bn3kh8mlfp4x1l6ns4fvmfv6hmj75cvxyzq029d7"))))
250 (build-system haskell-build-system)
252 `(("ghc-tasty" ,ghc-tasty)
254 ("ghc-tasty-quickcheck" ,ghc-tasty-quickcheck)
255 ("ghc-tasty-hunit" ,ghc-tasty-hunit)))
256 (home-page "https://github.com/vincenthz/tasty-kat")
257 (synopsis "Known Answer Tests (KAT) framework for tasty")
259 "This package provides a @dfn{Known Answer Tests} (KAT) framework for
261 (license license:expat)))
263 (define-public ghc-tasty-th
265 (name "ghc-tasty-th")
271 "https://hackage.haskell.org/package/tasty-th/tasty-th-"
275 "0dff9si8i1qp0s7p4hlk0l29vq7wxfglw6mvlgmld43h7rllv88q"))))
276 (build-system haskell-build-system)
278 `(("ghc-tasty" ,ghc-tasty)))
279 (home-page "https://github.com/bennofs/tasty-th")
280 (synopsis "Automatically generate tasty TestTrees")
282 "Tasty-th automatically generates tasty TestTrees from functions of the
283 current module, using TemplateHaskell. This is a fork the original
284 test-framework-th package, modified to work with tasty instead of
286 (license license:bsd-3)))
288 (define-public ghc-tasty-rerun
290 (name "ghc-tasty-rerun")
295 "https://hackage.haskell.org/package/tasty-rerun/"
296 "tasty-rerun-" version ".tar.gz"))
299 "0yg8cicfn3qaazvp4rbanzy3dyk95k3y1kkd4bykvkl9v4076788"))))
300 (build-system haskell-build-system)
302 `(("ghc-mtl" ,ghc-mtl)
303 ("ghc-optparse-applicative" ,ghc-optparse-applicative)
304 ("ghc-reducers" ,ghc-reducers)
305 ("ghc-split" ,ghc-split)
307 ("ghc-tagged" ,ghc-tagged)
308 ("ghc-tasty" ,ghc-tasty)))
309 (home-page "https://github.com/ocharles/tasty-rerun")
310 (synopsis "Run tests by filtering the test tree")
311 (description "This package adds the ability to run tests by filtering the
312 test tree based on the result of a previous test run. You can use this to run
313 only those tests that failed in the last run, or to only run the tests that have
314 been added since previous test run.")
315 (license license:bsd-3)))
317 (define-public ghc-tasty-expected-failure
319 (name "ghc-tasty-expected-failure")
324 (uri (string-append "https://hackage.haskell.org/package/"
325 "tasty-expected-failure/tasty-expected-failure-"
329 "0r555f18d2gj96pjyc13chn1nxaxl81am4xgip3mvvjhw8s5mva1"))))
330 (build-system haskell-build-system)
332 `(("ghc-tagged" ,ghc-tagged)
333 ("ghc-tasty" ,ghc-tasty)))
334 (home-page "http://github.com/nomeata/tasty-expected-failure")
335 (synopsis "Mark tasty tests as failure expected")
337 "With the function @code{Test.Tasty.ExpectedFailure.expectFail} in the
338 provided module @code{Test.Tasty.ExpectedFailure}, you can mark that you
339 expect test cases to fail, and not to pass. This can be used for test-driven
341 (license license:expat)))
343 (define-public ghc-quickcheck-instances
345 (name "ghc-quickcheck-instances")
351 "https://hackage.haskell.org/package/"
352 "quickcheck-instances/quickcheck-instances-"
356 "1bh1pzz5fdcqvzdcirqxna6fnjms02min5md716299g5niz46w55"))))
357 (build-system haskell-build-system)
359 `(#:configure-flags (list "--allow-newer=base-compat")))
361 `(("ghc-quickcheck" ,ghc-quickcheck)
362 ("ghc-base-compat" ,ghc-base-compat)
363 ("ghc-case-insensitive" ,ghc-case-insensitive)
364 ("ghc-hashable" ,ghc-hashable)
365 ("ghc-old-time" ,ghc-old-time)
366 ("ghc-scientific" ,ghc-scientific)
367 ("ghc-tagged" ,ghc-tagged)
368 ("ghc-text" ,ghc-text)
369 ("ghc-transformers-compat" ,ghc-transformers-compat)
370 ("ghc-unordered-containers" ,ghc-unordered-containers)
371 ("ghc-uuid-types" ,ghc-uuid-types)
372 ("ghc-vector" ,ghc-vector)))
373 (home-page "https://github.com/aslatter/qc-instances")
374 (synopsis "Common quickcheck instances")
375 (description "This package provides QuickCheck instances for types
376 provided by the Haskell Platform.")
377 (license license:bsd-3)))
379 (define-public ghc-quickcheck-unicode
381 (name "ghc-quickcheck-unicode")
387 "https://hackage.haskell.org/package/quickcheck-unicode/"
388 "quickcheck-unicode-" version ".tar.gz"))
391 "0s43s1bzbg3gwsjgm7fpyksd1339f0m26dlw2famxwyzgvm0a80k"))))
392 (build-system haskell-build-system)
393 (inputs `(("ghc-quickcheck" ,ghc-quickcheck)))
395 "https://github.com/bos/quickcheck-unicode")
396 (synopsis "Generator functions Unicode-related tests")
397 (description "This package provides generator and shrink functions for
398 testing Unicode-related software.")
399 (license license:bsd-3)))
401 (define-public ghc-quickcheck-io
403 (name "ghc-quickcheck-io")
409 "https://hackage.haskell.org/package/quickcheck-io/quickcheck-io-"
414 "08k4v7pkgjf30pv5j2dfv1gqv6hclxlniyq2sps8zq4zswcr2xzv"))))
415 (build-system haskell-build-system)
417 `(("ghc-quickcheck" ,ghc-quickcheck)
418 ("ghc-hunit" ,ghc-hunit)))
420 "https://github.com/hspec/quickcheck-io#readme")
421 (synopsis "Use HUnit assertions as QuickCheck properties")
422 (description "This package provides an orphan instance that allows you to
423 use HUnit assertions as QuickCheck properties.")
424 (license license:expat)))
426 (define-public ghc-quickcheck
428 (name "ghc-quickcheck")
430 (outputs '("out" "doc"))
435 "https://hackage.haskell.org/package/QuickCheck/QuickCheck-"
440 "1rfmns3lj3hl93k1jws85ajkkw7z9ll8cw292n9m7zald1w5dfqx"))))
441 (build-system haskell-build-system)
443 `(#:tests? #f ; FIXME: currently missing libraries used for tests.
444 #:configure-flags '("-f base4")))
446 `(("ghc-random" ,ghc-random)
447 ("ghc-tf-random" ,ghc-tf-random)))
448 (home-page "https://github.com/nick8325/quickcheck")
449 (synopsis "Automatic testing of Haskell programs")
451 "QuickCheck is a library for random testing of program properties. The
452 programmer provides a specification of the program, in the form of properties
453 which functions should satisfy, and QuickCheck then tests that the properties
454 hold in a large number of randomly generated cases. Specifications are
455 expressed in Haskell, using combinators defined in the QuickCheck library.")
456 (license license:bsd-3)))
458 (define-public ghc-quickcheck-2.9
460 (inherit ghc-quickcheck)
461 (name "ghc-quickcheck")
465 (uri (string-append "https://hackage.haskell.org/package/QuickCheck-2.9.2/QuickCheck-"
469 "119np67qvx8hyp9vkg4gr2wv3lj3j6ay2vl4hxspkg43ymb1cp0m"))))))
471 (define-public ghc-quickcheck-latest
472 (package (inherit ghc-quickcheck)
478 "https://hackage.haskell.org/package/QuickCheck/QuickCheck-"
483 "0xhqk35fkzlbjcqbabg6962jkv8d688nzmz7ng4bm84x2d95d328"))))))
485 (define-public ghc-test-framework
487 (name "ghc-test-framework")
492 (uri (string-append "https://hackage.haskell.org/package/test-framework/"
493 "test-framework-" version ".tar.gz"))
496 "0wxjgdvb1c4ykazw774zlx86550848wbsvgjgcrdzcgbb9m650vq"))))
497 (build-system haskell-build-system)
499 `(#:configure-flags (list "--allow-newer=time")))
501 `(("ghc-hunit" ,ghc-hunit)
502 ("ghc-quickcheck" ,ghc-quickcheck)))
504 `(("ghc-ansi-terminal" ,ghc-ansi-terminal)
505 ("ghc-ansi-wl-pprint" ,ghc-ansi-wl-pprint)
506 ("ghc-hostname" ,ghc-hostname)
507 ("ghc-old-locale" ,ghc-old-locale)
508 ("ghc-random" ,ghc-random)
509 ("ghc-regex-posix" ,ghc-regex-posix)
511 ("ghc-libxml" ,ghc-libxml)))
512 (home-page "https://batterseapower.github.io/test-framework/")
513 (synopsis "Framework for running and organising tests")
515 "This package allows tests such as QuickCheck properties and HUnit test
516 cases to be assembled into test groups, run in parallel (but reported in
517 deterministic order, to aid diff interpretation) and filtered and controlled
518 by command line options. All of this comes with colored test output, progress
519 reporting and test statistics output.")
520 (license license:bsd-3)))
522 (define-public ghc-test-framework-hunit
524 (name "ghc-test-framework-hunit")
529 (uri (string-append "https://hackage.haskell.org/package/"
530 "test-framework-hunit/test-framework-hunit-"
534 "1y0b6vg8nfm43v90lxxcydhi6qlxhfy4vpxbzm5ic2w55bh8xjwm"))))
535 (build-system haskell-build-system)
536 ;; The official revision of the cabal file allows for HUnit lower than 1.7
538 `(#:configure-flags (list "--allow-newer=HUnit")))
540 `(("ghc-extensible-exceptions" ,ghc-extensible-exceptions)
541 ("ghc-hunit" ,ghc-hunit)
542 ("ghc-test-framework" ,ghc-test-framework)))
543 (home-page "https://batterseapower.github.io/test-framework/")
544 (synopsis "HUnit support for test-framework")
546 "This package provides HUnit support for the test-framework package.")
547 (license license:bsd-3)))
549 (define-public ghc-test-framework-quickcheck2
551 (name "ghc-test-framework-quickcheck2")
556 (uri (string-append "https://hackage.haskell.org/package/"
557 "test-framework-quickcheck2/"
558 "test-framework-quickcheck2-" version ".tar.gz"))
561 "0vj834337r6jzr3258cv68ly2sv5999mklpsrfngyk51kywsyqyp"))))
562 (build-system haskell-build-system)
564 `(("ghc-extensible-exceptions" ,ghc-extensible-exceptions)
565 ("ghc-quickcheck" ,ghc-quickcheck)
566 ("ghc-random" ,ghc-random)
567 ("ghc-test-framework" ,ghc-test-framework)))
568 (home-page "https://batterseapower.github.io/test-framework/")
569 (synopsis "QuickCheck2 support for test-framework")
571 "This packages provides QuickCheck2 support for the test-framework
573 (license license:bsd-3)))
575 (define-public ghc-test-framework-th
577 (name "ghc-test-framework-th")
582 (uri (string-append "https://hackage.haskell.org/package/"
583 "test-framework-th-" version "/"
584 "test-framework-th-" version ".tar.gz"))
587 "12lw7yj02jb9s0i7rb98jjam43j2h0gzmnbj9zi933fx7sg0sy4b"))))
588 (build-system haskell-build-system)
590 `(("ghc-test-framework" ,ghc-test-framework)
591 ("ghc-language-haskell-extract" ,ghc-language-haskell-extract)
592 ("ghc-haskell-src-exts" ,ghc-haskell-src-exts)
593 ("ghc-regex-posix" ,ghc-regex-posix)))
594 (home-page "https://github.com/finnsson/test-generator")
595 (synopsis "Auto generate the HUnit- and Quickcheck-bulk-code
596 using Template Haskell")
597 (description "This library contains two functions:
598 @code{defaultMainGenerator} and @code{testGroupGenerator}.
600 @code{defaultMainGenerator} will extract all functions beginning with
601 @code{case_}, @code{prop_}, or @code{test_} in the module and put them in a
604 @code{testGroupGenerator} is like @code{defaultMainGenerator} but without
605 @code{defaultMain}. It is useful if you need a function for the testgroup
606 \(e.g. if you want to be able to call the testgroup from another module).")
607 (license license:bsd-3)))
609 (define-public ghc-hunit
613 (outputs '("out" "doc"))
617 (uri (string-append "https://hackage.haskell.org/package/HUnit/"
618 "HUnit-" version ".tar.gz"))
621 "1pnhwqq5v8h48gbp3ibv3skfj25mf4zs5svxcavq93p9cswycj3l"))))
622 (build-system haskell-build-system)
624 ;; We cannot use ghc-call-stack there, because it depends on
625 ;; ghc-nanospec, which depends on ghc-hunit.
626 `(("ghc-call-stack" ,ghc-call-stack-boot)))
627 (home-page "http://hunit.sourceforge.net/")
628 (synopsis "Unit testing framework for Haskell")
630 "HUnit is a unit testing framework for Haskell, inspired by the
631 JUnit tool for Java.")
632 (license license:bsd-3)))
634 (define-public hspec-discover
636 (name "hspec-discover")
641 (uri (string-append "https://hackage.haskell.org/package/"
642 "hspec-discover/hspec-discover-"
646 "04aidzi91ccr9bygmfkjzshz34z9vh8wvqj4zinx2clxq6r7gqfz"))))
647 (build-system haskell-build-system)
649 `(("ghc-quickcheck" ,ghc-quickcheck)
650 ("ghc-hspec-meta" ,ghc-hspec-meta)))
651 (home-page "https://hspec.github.io/")
652 (synopsis "Automatically discover and run Hspec tests")
653 (description "hspec-discover is a tool which automatically discovers and
655 (license license:expat)))
657 (define-public ghc-hspec-core
659 (name "ghc-hspec-core")
664 (uri (string-append "https://hackage.haskell.org/package/hspec-core/"
665 "hspec-core-" version ".tar.gz"))
668 "1vfrqlpn32s9wiykmkxbnrnd5p56yznw20pf8fwzw78ar4wpz55x"))))
669 (build-system haskell-build-system)
670 (arguments `(#:tests? #f)) ; FIXME: testing libraries are missing.
672 `(("ghc-setenv" ,ghc-setenv)
673 ("ghc-ansi-terminal" ,ghc-ansi-terminal)
674 ("ghc-async" ,ghc-async)
675 ("ghc-clock" ,ghc-clock)
676 ("ghc-quickcheck-io" ,ghc-quickcheck-io)
677 ("ghc-hunit" ,ghc-hunit)
678 ("ghc-quickcheck" ,ghc-quickcheck)
679 ("ghc-hspec-expectations" ,ghc-hspec-expectations)
680 ("ghc-silently" ,ghc-silently)))
681 (home-page "https://hspec.github.io/")
682 (synopsis "Testing framework for Haskell")
683 (description "This library exposes internal types and functions that can
684 be used to extend Hspec's functionality.")
685 (license license:expat)))
687 (define-public ghc-hspec-meta
689 (name "ghc-hspec-meta")
694 (uri (string-append "https://hackage.haskell.org/package/hspec-meta/"
695 "hspec-meta-" version ".tar.gz"))
698 "0qmvk01n79j6skn79r6zalg2pd0x0nqqn9qn8mhg0pgyzcdnfc9b"))))
699 (build-system haskell-build-system)
701 `(("ghc-quickcheck" ,ghc-quickcheck)
702 ("ghc-hunit" ,ghc-hunit)
703 ("ghc-ansi-terminal" ,ghc-ansi-terminal)
704 ("ghc-async" ,ghc-async)
705 ("ghc-hspec-expectations" ,ghc-hspec-expectations)
706 ("ghc-setenv" ,ghc-setenv)
707 ("ghc-random" ,ghc-random)
708 ("ghc-quickcheck-io" ,ghc-quickcheck-io)))
709 (home-page "https://hspec.github.io/")
710 (synopsis "Version of Hspec to test Hspec itself")
711 (description "This library provides a stable version of Hspec which is
712 used to test the in-development version of Hspec.")
713 (license license:expat)))
715 (define-public ghc-hspec
722 (uri (string-append "https://hackage.haskell.org/package/hspec/"
723 "hspec-" version ".tar.gz"))
726 "1yv4k5b5kkig2q3waj28587sq28wms7wfav5a3lq4dra6jybimfm"))))
727 (build-system haskell-build-system)
729 `(("ghc-hspec-core" ,ghc-hspec-core)
730 ("hspec-discover" ,hspec-discover)
731 ("ghc-hspec-expectations" ,ghc-hspec-expectations)
732 ("ghc-quickcheck" ,ghc-quickcheck)
733 ("ghc-hunit" ,ghc-hunit)
734 ("ghc-stringbuilder" ,ghc-stringbuilder)
735 ("ghc-hspec-meta" ,ghc-hspec-meta)))
736 (home-page "https://hspec.github.io/")
737 (synopsis "Testing Framework for Haskell")
738 (description "This library provides the Hspec testing framework for
739 Haskell, inspired by the Ruby library RSpec.")
740 (license license:expat)))
742 (define-public ghc-hspec-contrib
744 (name "ghc-hspec-contrib")
748 (uri (string-append "https://hackage.haskell.org/package/"
749 "hspec-contrib/hspec-contrib-"
753 "13579xdqwbsy8k0vxdcvgy932d4p76mij1rzkzbpqbspfn7399yv"))))
754 (build-system haskell-build-system)
756 `(("ghc-hspec-core" ,ghc-hspec-core)
757 ("ghc-hunit" ,ghc-hunit)
758 ("ghc-hspec" ,ghc-hspec)
759 ("ghc-quickcheck" ,ghc-quickcheck)))
761 `(("hspec-discover" ,hspec-discover)))
762 (home-page "https://hspec.github.io/")
763 (synopsis "Contributed functionality for Hspec")
765 "This package provides contributed Hspec extensions.")
766 (license license:expat)))
768 (define-public ghc-hspec-expectations
770 (name "ghc-hspec-expectations")
775 (uri (string-append "https://hackage.haskell.org/package/"
776 "hspec-expectations/hspec-expectations-"
780 "1vxl9zazbaapijr6zmcj72j9wf7ka1pirrjbwddwwddg3zm0g5l1"))))
781 (build-system haskell-build-system)
782 ;; Tests depend on ghc-nanospec.
783 (arguments '(#:tests? #f))
784 (inputs `(("ghc-hunit" ,ghc-hunit)))
785 (home-page "https://github.com/sol/hspec-expectations")
786 (synopsis "Catchy combinators for HUnit")
787 (description "This library provides catchy combinators for HUnit, see
788 @uref{https://github.com/sol/hspec-expectations#readme, the README}.")
789 (license license:expat)))
791 (define-public ghc-nanospec
793 (name "ghc-nanospec")
798 (uri (string-append "https://hackage.haskell.org/package/"
803 "1rcmhl9bhyfvanalnf1r86wkx6rq6wdvagnw1h011jcnnb1cq56g"))))
804 (build-system haskell-build-system)
806 `(("ghc-hspec" ,ghc-hspec)
807 ("ghc-silently" ,ghc-silently)))
808 (home-page "https://github.com/hspec/nanospec#readme")
809 (synopsis "Lightweight implementation of a subset of Hspec's API")
811 "Nanospec is a lightweight implementation of a subset of Hspec's API with
812 minimal dependencies.")
813 (license license:expat)))
815 (define-public ghc-crypto-cipher-tests
817 (name "ghc-crypto-cipher-tests")
822 (uri (string-append "https://hackage.haskell.org/package/"
823 "crypto-cipher-tests-" version "/"
824 "crypto-cipher-tests-" version ".tar.gz"))
827 "19wqignlq90qwpam01hnmmrxaxh5lkax9l1l6rlbi4a07nvp1dnz"))))
828 (build-system haskell-build-system)
829 (inputs `(("ghc-quickcheck" ,ghc-quickcheck)
831 ("ghc-hunit" ,ghc-hunit)
832 ("ghc-test-framework" ,ghc-test-framework)
833 ("ghc-test-framework-quickcheck2" ,ghc-test-framework-quickcheck2)
834 ("ghc-test-framework-hunit" ,ghc-test-framework-hunit)
835 ("ghc-byteable" ,ghc-byteable)
836 ("ghc-securemem" ,ghc-securemem)
837 ("ghc-crypto-cipher-types" ,ghc-crypto-cipher-types)))
838 (home-page "https://github.com/vincenthz/hs-crypto-cipher")
839 (synopsis "Generic cryptography cipher tests for Haskell")
840 (description " This Haskell package contains generic tests for
841 cryptographic ciphers, and is used by the test runners of various Haskell
842 implementations of cryptographic ciphers.")
843 (license license:bsd-3)))