Subject: [bug#53734] [PATCH] gnu: Add cl-snakes.

From: jgart <[email-masked]>
Date: Wed, 2 Feb 2022 14:07:55 -0500

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

diff --git a/gnu/packages/lisp-xyz.scm b/gnu/packages/lisp-xyz.scm
index f686570baa..61ceb6e57c 100644
--- a/gnu/packages/lisp-xyz.scm
+++ b/gnu/packages/lisp-xyz.scm
@@ -20069,6 +20069,43 @@ (define-public cl-maxpc
 (define-public ecl-maxpc
   (sbcl-package->ecl-package sbcl-maxpc))
 
+(define-public sbcl-snakes
+  (let ((commit "8c7eae579bb24539dbd584a81a1049f3d3ff8bf8")
+        (revision "0"))
+    (package
+      (name "sbcl-snakes")
+      (version (git-version "0.0.0" revision commit))
+      (source
+        (origin
+          (method git-fetch)
+          (uri (git-reference
+                (url "https://github.com/BnMcGn/snakes")
+                (commit commit)))
+          (sha256
+           (base32 "1ibp919qcpm6kg67b507kpjzdlhpdjr7vkh9vabln3a75k8lnlsg"))
+          (file-name (git-file-name name commit))))
+      (build-system asdf-build-system/sbcl)
+      (inputs
+        (list sbcl-alexandria
+              sbcl-cl-cont
+              sbcl-cl-utilities
+              sbcl-closer-mop
+              sbcl-fiveam
+              sbcl-iterate))
+      (arguments
+       `(#:asd-files '("snakes.asd")))
+      (home-page "https://github.com/BnMcGn/snakes")
+      (synopsis "Python-like generators for Common Lisp")
+      (description
+"Python style generators for Common Lisp.  Includes a port of itertools.")
+      (license license:expat))))
+
+(define-public cl-snakes
+  (sbcl-package->cl-source-package sbcl-snakes))
+
+(define-public ecl-snakes
+  (sbcl-package->ecl-package sbcl-snakes))
+
 (define-public sbcl-random-state
   (let ((commit "c270d4f15e0b66ba9680ca8734a5de56959cb118")
         (revision "1"))
-- 
2.35.0