diff mbox series

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

Message ID 87v8xv32dp.fsf@reilysiegel.com
State New
Headers show
Series Remove limitations on clojure-tools | expand

Checks

Context Check Description
cbaines/comparison success View comparision
cbaines/git branch success View Git branch
cbaines/applying patch success View Laminar job
cbaines/issue success View issue
cbaines/comparison success View comparision
cbaines/git branch success View Git branch
cbaines/applying patch success View Laminar job
cbaines/issue success View issue

Commit Message

Reily Siegel Feb. 4, 2022, 12:24 a.m. UTC
* gnu/packages/clojure.scm (clojure-data-json): New variable.
---
 gnu/packages/clojure.scm | 28 ++++++++++++++++++++++++++++
 1 file changed, 28 insertions(+)

Comments

M Feb. 10, 2022, 5:52 p.m. UTC | #1
Reily Siegel schreef op do 03-02-2022 om 19:24 [-0500]:
> +       ;; ClassCastException, ConcurrentExecutionException
> +       #:test-exclude '(clojure.data.json-compat-0-1-test
> +                        clojure.data.json-gen-test
> +                        clojure.data.json-test)))

Seems like there's a bug in clojure-data-json to fix or at least report
upstream then?

Greetings,
Maxime.
M Feb. 10, 2022, 6 p.m. UTC | #2
Reily Siegel schreef op do 03-02-2022 om 19:24 [-0500]:
> * gnu/packages/clojure.scm (clojure-data-json): New variable.

Some files under src/test/clojure/clojure/data are missing license
headers, while others do have an EPL license header.  Are they
also under the EPL?

There doesn't appear to be anything malicious in the source code.

There's again the ‘all rights reserved’ despite ‘EPL licensed’.

> +    (synopsis "JSON parser/generator to/from Clojure data structures")
> +    (description "JSON parser/generator to/from Clojure data structures.")

Description is missing.

Greetings,
Maxime.
diff mbox series

Patch

diff --git a/gnu/packages/clojure.scm b/gnu/packages/clojure.scm
index 3cf287140d..c4524c2abb 100644
--- a/gnu/packages/clojure.scm
+++ b/gnu/packages/clojure.scm
@@ -315,6 +315,34 @@  (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")
+    (home-page "https://github.com/clojure/data.json")
+    (source (origin
+              (method git-fetch)
+              (uri (git-reference
+                    (url home-page)
+                    (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 '()
+       ;; ClassCastException, ConcurrentExecutionException
+       #:test-exclude '(clojure.data.json-compat-0-1-test
+                        clojure.data.json-gen-test
+                        clojure.data.json-test)))
+    (synopsis "JSON parser/generator to/from Clojure data structures")
+    (description "JSON parser/generator to/from Clojure data structures.")
+    (license license:epl1.0)))
+
 (define-public clojure-data-priority-map
   (package
     (name "clojure-data-priority-map")