diff mbox series

[bug#44954,03/12] gnu: Add ghc-yesod-test.

Message ID 20201129223301.19210-3-goodoldpaul@autistici.org
State Accepted
Headers show
Series [bug#44954,01/12] gnu: ghc-doctest: Update to 0.16.3. | expand

Checks

Context Check Description
cbaines/submitting builds success
cbaines/comparison success View comparision
cbaines/git branch success View Git branch
cbaines/applying patch success View Laminar job
cbaines/issue success View issue

Commit Message

Giacomo Leidi Nov. 29, 2020, 10:32 p.m. UTC
* gnu/packages/haskell-web.scm (ghc-yesod-test): New variable.
---
 gnu/packages/haskell-web.scm | 53 ++++++++++++++++++++++++++++++++++++
 1 file changed, 53 insertions(+)
diff mbox series

Patch

diff --git a/gnu/packages/haskell-web.scm b/gnu/packages/haskell-web.scm
index 589d2d3e11..a186779e72 100644
--- a/gnu/packages/haskell-web.scm
+++ b/gnu/packages/haskell-web.scm
@@ -2024,3 +2024,56 @@  Bower's package manifest file, bower.json.")
 Authoring and Versioning (WebDAV) extensions to HTTP as well an executable,
 @command{hdav}, for command-line operation.")
     (license license:gpl3)))
+
+(define-public ghc-yesod-test
+  (package
+   (name "ghc-yesod-test")
+   (version "1.6.10")
+   (source
+    (origin
+     (method url-fetch)
+     (uri (string-append
+           "https://hackage.haskell.org/package/yesod-test/yesod-test-"
+           version
+           ".tar.gz"))
+     (sha256
+      (base32
+       "0vw6yg5b22a6flbl822z23k0l23as5mmxjcdnj2zgjjv5i713yfx"))))
+   (build-system haskell-build-system)
+   (inputs
+    `(("ghc-hunit" ,ghc-hunit)
+      ("ghc-aeson" ,ghc-aeson)
+      ("ghc-attoparsec" ,ghc-attoparsec)
+      ("ghc-blaze-builder" ,ghc-blaze-builder)
+      ("ghc-blaze-html" ,ghc-blaze-html)
+      ("ghc-case-insensitive" ,ghc-case-insensitive)
+      ("ghc-conduit" ,ghc-conduit)
+      ("ghc-cookie" ,ghc-cookie)
+      ("ghc-hspec-core" ,ghc-hspec-core)
+      ("ghc-html-conduit" ,ghc-html-conduit)
+      ("ghc-http-types" ,ghc-http-types)
+      ("ghc-network" ,ghc-network)
+      ("ghc-memory" ,ghc-memory)
+      ("ghc-pretty-show" ,ghc-pretty-show)
+      ("ghc-semigroups" ,ghc-semigroups)
+      ("ghc-wai" ,ghc-wai)
+      ("ghc-wai-extra" ,ghc-wai-extra)
+      ("ghc-xml-conduit" ,ghc-xml-conduit)
+      ("ghc-xml-types" ,ghc-xml-types)
+      ("ghc-yesod-core" ,ghc-yesod-core)))
+   (native-inputs
+    `(("ghc-hspec" ,ghc-hspec)
+      ("ghc-yesod-form" ,ghc-yesod-form)
+      ("ghc-unliftio" ,ghc-unliftio)
+      ("ghc-unliftio-core" ,ghc-unliftio-core)))
+   (home-page "http://www.yesodweb.com")
+   (synopsis
+    "Integration testing for WAI/Yesod Applications")
+   (description
+    "This package's main goal is to encourage integration
+and system testing of web applications by making everything
+easy to test.  Tests are like browser sessions that
+keep track of cookies and the last visited page.  You
+can perform assertions on the content of HTML responses
+using CSS selectors.")
+   (license license:expat)))