guix_mirror_bot pushed a commit to branch next-master
in repository guix.

commit 6e2cadbfa089a93a032332032cae077b69436439
Author: Mathieu Lirzin <[email protected]>
AuthorDate: Mon Jan 5 11:59:23 2026 +0100

    gnu: Add clojure-spec-alpha.
    
    * gnu/packages/clojure.scm (clojure-spec-alpha): New variable.
    
    Change-Id: Id7136fd6637e920a40af5f6628ec8537a1fd9f51
    Signed-off-by: Ludovic Courtès <[email protected]>
---
 gnu/packages/clojure.scm | 32 +++++++++++++++++++++++++++++++-
 1 file changed, 31 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/clojure.scm b/gnu/packages/clojure.scm
index b5a4133531..b000daaec2 100644
--- a/gnu/packages/clojure.scm
+++ b/gnu/packages/clojure.scm
@@ -5,7 +5,7 @@
 ;;; Copyright © 2019 Jesse Gibbons <[email protected]>
 ;;; Copyright © 2020 Ludovic Courtès <[email protected]>
 ;;; Copyright © 2024 Roman Scherer <[email protected]>
-;;; Copyright © 2025 Mathieu Lirzin <[email protected]>
+;;; Copyright © 2025, 2026 Mathieu Lirzin <[email protected]>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -1101,3 +1101,33 @@ the same way for every operation on every service.")
 Clojure.")
     (home-page "https://github.com/clojure/java.classpath";)
     (license license:epl1.0)))
+
+(define-public clojure-spec-alpha
+  (package
+    (name "clojure-spec-alpha")
+    (version "0.6.249")
+    (source (origin
+              (method git-fetch)
+              (uri (git-reference
+                     (url "https://github.com/clojure/spec.alpha";)
+                     (commit (string-append "v" version))))
+              (file-name (git-file-name name version))
+              (sha256
+               (base32
+                "1rzy7mjzchsjpwkn3b5vg5hnmsj5h9ljxdjn48j92bgh7vl3k2r5"))))
+    (build-system clojure-build-system)
+    (arguments '(#:source-dirs '("src/main/clojure")
+                 #:test-dirs '("src/test/clojure")
+                 #:doc-dirs '()))
+    (native-inputs (list clojure-test-check))
+    (synopsis
+     "Clojure library to describe the structure of data and functions")
+    (description
+     "This package can be used to validate data, conform (destructure) data, 
explain
+invalid data, generate examples that conform to the specs, and automatically
+use generative testing to test functions.
+
+Clojure depends on this library and provides it.  Thus it is not recommended
+to add a direct dependency on this package.")
+    (home-page "https://github.com/clojure/spec.alpha";)
+    (license license:epl1.0)))

Reply via email to