Subject: bug#57618: closed (Re: [bug#57618] [PATCH] gnu: Add cl-hamcrest.)

From: [email-masked] (GNU bug Tracking System)
Date: Wed, 07 Sep 2022 12:39:01 +0000

Your bug report

#57618: [PATCH] gnu: Add cl-hamcrest.

which was filed against the guix-patches package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to [email-masked].

-- 
57618: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=57618
GNU Bug Tracking System
Contact [email-masked] with problems

Subject: Re: [bug#57618] [PATCH] gnu: Add cl-hamcrest.
From: Guillaume Le Vaillant <[email-masked]>
To: jgart <[email-masked]>
Cc: [email-masked]
Date: Wed, 07 Sep 2022 12:36:36 +0000
List-Id: <debbugs-submit.debbugs.gnu.org>

cl-hamcrest 0.4.4 is already in "lisp-check.scm".
Closing.

Subject: [PATCH] gnu: Add cl-hamcrest.
From: jgart <[email-masked]>
To: [email-masked]
Cc: jgart <[email-masked]>
Date: Tue, 6 Sep 2022 08:00:14 -0500
List-Id: <debbugs-submit.debbugs.gnu.org>

* 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