diff mbox series

[bug#53765,v3,02/17] gnu: Add clojure-data-json.

Message ID 903e364407b31810c9427cc7f8859113c6074e02.1649248640.git.mail@reilysiegel.com
State New
Headers show
Series Remove limitations on clojure-tools | expand

Commit Message

Reily Siegel Jan. 15, 2022, 10:32 p.m. UTC
---
 gnu/packages/clojure.scm | 31 +++++++++++++++++++++++++++++++
 1 file changed, 31 insertions(+)
diff mbox series

Patch

diff --git a/gnu/packages/clojure.scm b/gnu/packages/clojure.scm
index 44c85b9ef2..f9349e7523 100644
--- a/gnu/packages/clojure.scm
+++ b/gnu/packages/clojure.scm
@@ -315,6 +315,37 @@  (define-public clojure-data-codec
 is on par with Java implementations, e.g., Apache commons-codec.")
     (license license:epl1.0)))
 
+(define-public clojure-data-json
+  (package
+    (name "clojure-data-json")
+    (version "2.4.0")
+    (source (origin
+              (method git-fetch)
+              (uri (git-reference
+                    (url "https://github.com/clojure/data.json")
+                    (commit (string-append "v" version))))
+              (file-name (git-file-name name version))
+              (sha256
+               (base32
+                "1xx3hiy62rrph4y4g3aqa1lfb0ns3p6vdvcvlpgm5w1npl70n2r5"))))
+    (build-system clojure-build-system)
+    (native-inputs (list clojure-test-check))
+    (arguments
+     '(#:source-dirs '("src/main/clojure")
+       #:test-dirs '("src/test/clojure")
+       #:doc-dirs '()
+       ;; Tests fail due to issues with clojure.pprint. This is an issue with
+       ;; how Guix AOT-compiles Clojure.
+       #:test-exclude '(clojure.data.json-compat-0-1-test
+                        clojure.data.json-gen-test
+                        clojure.data.json-test)))
+    (home-page "https://github.com/clojure/data.json")
+    (synopsis "JSON parser/generator to/from Clojure data structures")
+    (description "clojure-data-json implements a JSON parser/generator that
+enables easy conversion between Clojure data structures and JSON strings,
+without needing a defined schema.")
+    (license license:epl1.0)))
+
 (define-public clojure-data-priority-map
   (package
     (name "clojure-data-priority-map")