Subject: [bug#66801] [PATCH v3 06/15] gnu: Add elixir-jason.

From: Pierre-Henry Fröhring <[email-masked]>
Date: Fri, 8 Dec 2023 18:31:33 +0100

From: Pierre-Henry Fröhring <[email-masked]>

* gnu/packages/elixir-xyz.scm (elixir-jason): New variable.

Change-Id: Iadd816e2b5db6d146728aacb4d6b2c66aba4304c
---
 gnu/packages/elixir-xyz.scm | 21 +++++++++++++++++++++
 1 file changed, 21 insertions(+)

diff --git a/gnu/packages/elixir-xyz.scm b/gnu/packages/elixir-xyz.scm
index 46565c168..dc20a69b4 100644
--- a/gnu/packages/elixir-xyz.scm
+++ b/gnu/packages/elixir-xyz.scm
@@ -70,6 +70,27 @@ (define-public elixir-makeup
     (home-page "https://hexdocs.pm/makeup/")
     (license license:bsd-2)))
 
+(define-public elixir-jason
+  (package
+    (name "elixir-jason")
+    (version "1.4.1")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (hexpm-uri name version))
+       (sha256
+        (base32 "18d70i31bz11nr6vgsjn5prvhkvwqbyf3xq22ck5cnsnzp6ixc7v"))))
+    (build-system mix-build-system)
+    (arguments (list #:tests? #f)) ;There is no test/ in the source.
+    (synopsis "JSON parser and generator")
+    (description
+     "Parser and generator are written in pure Elixir and optimized for speed. They
+are at least twice as fast as other Elixir/Erlang libraries (e.g.
+Poison). The performance is comparable to jiffy, which is implemented in C as
+a NIF.")
+    (home-page "https://hexdocs.pm/jason/")
+    (license license:asl2.0)))
+
 ;;;
 ;;; Avoid adding new packages to the end of this file. To reduce the chances
 ;;; of a merge conflict, place them above by existing packages with similar
-- 
2.41.0