unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
* [bug#57618] [PATCH] gnu: Add cl-hamcrest.
@ 2022-09-06 13:00 jgart via Guix-patches via
  2022-09-07 12:36 ` bug#57618: " Guillaume Le Vaillant
  0 siblings, 1 reply; 2+ messages in thread
From: jgart via Guix-patches via @ 2022-09-06 13:00 UTC (permalink / raw)
  To: 57618; +Cc: jgart

* 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





^ permalink raw reply related	[flat|nested] 2+ messages in thread

* bug#57618: [PATCH] gnu: Add cl-hamcrest.
  2022-09-06 13:00 [bug#57618] [PATCH] gnu: Add cl-hamcrest jgart via Guix-patches via
@ 2022-09-07 12:36 ` Guillaume Le Vaillant
  0 siblings, 0 replies; 2+ messages in thread
From: Guillaume Le Vaillant @ 2022-09-07 12:36 UTC (permalink / raw)
  To: jgart; +Cc: 57618-close

[-- Attachment #1: Type: text/plain, Size: 59 bytes --]

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

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 247 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-09-07 12:39 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-09-06 13:00 [bug#57618] [PATCH] gnu: Add cl-hamcrest jgart via Guix-patches via
2022-09-07 12:36 ` bug#57618: " Guillaume Le Vaillant

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).