unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
From: jgart via Guix-patches via <guix-patches@gnu.org>
To: 57618@debbugs.gnu.org
Cc: jgart <jgart@dismail.de>
Subject: [bug#57618] [PATCH] gnu: Add cl-hamcrest.
Date: Tue,  6 Sep 2022 08:00:14 -0500	[thread overview]
Message-ID: <20220906130014.7890-1-jgart@dismail.de> (raw)

* gnu/packages/lisp-xyz.scm (cl-hamcrest): New variable.
---
 gnu/packages/lisp-xyz.scm | 39 +++++++++++++++++++++++++++++++++++++++
 1 file changed, 39 insertions(+)

diff --git a/gnu/packages/lisp-xyz.scm b/gnu/packages/lisp-xyz.scm
index b16ddbe304..6410ba9b1a 100644
--- a/gnu/packages/lisp-xyz.scm
+++ b/gnu/packages/lisp-xyz.scm
@@ -22846,6 +22846,45 @@ (define-public cl-binary-types
 (define-public ecl-binary-types
   (sbcl-package->ecl-package sbcl-binary-types))
 
+(define-public sbcl-cl-hamcrest
+  (package
+    (name "sbcl-cl-hamcrest")
+    (version "0.4.3")
+    (source
+      (origin
+        (method git-fetch)
+        (uri (git-reference
+              (url "https://github.com/40ants/cl-hamcrest")
+              (commit (string-append "v" version))))
+        (file-name (git-file-name name version))
+        (sha256
+         (base32 "0rh4g3ycxrwcm3cs5xshd2wsxzbgwfn7zxlndyzsjqsy3g0sp9yg"))))
+    (build-system asdf-build-system/sbcl)
+    (arguments
+     `(#:asd-systems '("hamcrest"
+                       "hamcrest-test")))
+    (inputs
+      (list sbcl-iterate
+            sbcl-split-sequence
+            sbcl-cl-ppcre
+            sbcl-alexandria
+            sbcl-rove
+            sbcl-prove))
+    (home-page "http://40ants.com/cl-hamcrest/")
+    (synopsis "Make CL unittests more readable")
+    (description
+"@code{sbcl-cl-hamcrest} is an implementation of the Hamcrest idea
+in CommoLisp.  It simplifes unittests and make them more readable.
+Hamcrest useidea of pattern-matching, to construct matchers from different
+pieceand to apply them to the data.")
+    (license license:bsd-3)))
+
+(define-public cl-hamcrest
+  (sbcl-package->cl-source-package sbcl-cl-hamcrest))
+
+(define-public ecl-cl-hamcrest
+  (sbcl-package->ecl-package sbcl-cl-hamcrest))
+
 (define-public sbcl-trivial-custom-debugger
   (let ((commit "a560594a673bbcd88136af82086107ee5ff9ca81"))
     (package
-- 
2.37.2





             reply	other threads:[~2022-09-06 13:57 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-09-06 13:00 jgart via Guix-patches via [this message]
2022-09-07 12:36 ` bug#57618: [PATCH] gnu: Add cl-hamcrest Guillaume Le Vaillant

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20220906130014.7890-1-jgart@dismail.de \
    --to=guix-patches@gnu.org \
    --cc=57618@debbugs.gnu.org \
    --cc=jgart@dismail.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).