[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
17/30: gnu: Add python-canonicaljson.
From: |
guix-commits |
Subject: |
17/30: gnu: Add python-canonicaljson. |
Date: |
Thu, 2 Apr 2020 14:55:48 -0400 (EDT) |
mbakke pushed a commit to branch master
in repository guix.
commit 77b32f61f99002966cd944e48e01f9da7537be9f
Author: Alex ter Weele <address@hidden>
AuthorDate: Sat Feb 29 11:08:29 2020 -0600
gnu: Add python-canonicaljson.
* gnu/packages/python-xyz.scm (python-canonicaljson): New variable.
Signed-off-by: Marius Bakke <address@hidden>
---
gnu/packages/python-xyz.scm | 32 ++++++++++++++++++++++++++++++++
1 file changed, 32 insertions(+)
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 03f6b63..d559496 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -18769,3 +18769,35 @@ replacement for dictionaries where immutability is
desired.")
using “=” characters. However this conveys no benefit so many protocols
choose to use Base64 without the “=” padding.")
(license license:asl2.0)))
+
+(define-public python-canonicaljson
+ (package
+ (name "python-canonicaljson")
+ (version "1.1.4")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (pypi-uri "canonicaljson" version))
+ (sha256
+ (base32 "09cpacc8yvcc74i63pdmlfaahh77dnvbyw9zf29wml2zzwqfbg25"))))
+ (build-system python-build-system)
+ (propagated-inputs
+ `(("python-six" ,python-six)
+ ("python-frozendict" ,python-frozendict)
+ ("python-simplejson" ,python-simplejson)))
+ (home-page "https://github.com/matrix-org/python-canonicaljson")
+ (synopsis "Canonical JSON")
+ (description
+ "Deterministically encode JSON.
+
+@itemize
+@item Encodes objects and arrays as RFC 7159 JSON.
+@item Sorts object keys so that you get the same result each time.
+@item Has no insignificant whitespace to make the output as small as possible.
+@item Escapes only the characters that must be escaped, U+0000 to
+ U+0019 / U+0022 / U+0056, to keep the output as small as possible.
+@item Uses the shortest escape sequence for each escaped character.
+@item Encodes the JSON as UTF-8.
+@item Can encode frozendict immutable dictionaries.
+@end itemize")
+ (license license:asl2.0)))
- 04/30: gnu: Add emacs-ac-geiser., (continued)
- 04/30: gnu: Add emacs-ac-geiser., guix-commits, 2020/04/02
- 05/30: gnu: Add r-oenb., guix-commits, 2020/04/02
- 06/30: gnu: cedille: Fix emacs outputs., guix-commits, 2020/04/02
- 03/30: gnu: sdl2: Update to 2.0.12., guix-commits, 2020/04/02
- 07/30: gnu: cedille: Install the info pages., guix-commits, 2020/04/02
- 10/30: gnu: proof-general: Update to 4.4., guix-commits, 2020/04/02
- 11/30: gnu: proof-general: Update home-page., guix-commits, 2020/04/02
- 08/30: gnu: Add xwallpaper., guix-commits, 2020/04/02
- 12/30: gnu: Add font-iosevka-term-slab., guix-commits, 2020/04/02
- 09/30: gnu: gnome-default-applications: Change defaults.list to gnome-mimeapps.list., guix-commits, 2020/04/02
- 17/30: gnu: Add python-canonicaljson.,
guix-commits <=
- 14/30: services: murmur: Add missing newline in murmur-configuration., guix-commits, 2020/04/02
- 16/30: gnu: Add python-unpaddedbase64., guix-commits, 2020/04/02
- 18/30: gnu: Add python-signedjson., guix-commits, 2020/04/02
- 13/30: gnu: Add font-iosevka-term., guix-commits, 2020/04/02
- 15/30: gnu: Add python-frozendict., guix-commits, 2020/04/02
- 20/30: gnu: Add python-pymacaroons., guix-commits, 2020/04/02
- 22/30: gnu: Add python-ldap3., guix-commits, 2020/04/02
- 23/30: gnu: Add python-boltons., guix-commits, 2020/04/02
- 25/30: gnu: Add python-pem., guix-commits, 2020/04/02
- 27/30: gnu: Add python-txacme., guix-commits, 2020/04/02