diff options
author | Alex ter Weele <alex.ter.weele@gmail.com> | 2020-02-29 11:09:58 -0600 |
---|---|---|
committer | Marius Bakke <mbakke@fastmail.com> | 2020-04-02 20:55:15 +0200 |
commit | af1f7a3279bc7852de138122c267b70e1603a9c0 (patch) | |
tree | 8b9586354ec0fac7a27e6251d60c434812b5d6be /gnu | |
parent | 77b32f61f99002966cd944e48e01f9da7537be9f (diff) | |
download | guix-af1f7a3279bc7852de138122c267b70e1603a9c0.tar.gz guix-af1f7a3279bc7852de138122c267b70e1603a9c0.zip |
gnu: Add python-signedjson.
* gnu/packages/python-xyz.scm (python-signedjson): New variable.
Co-authored-by: Marius Bakke <mbakke@fastmail.com>
Diffstat (limited to 'gnu')
-rw-r--r-- | gnu/packages/python-xyz.scm | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index d559496f92..b31f2ff58a 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -18801,3 +18801,37 @@ choose to use Base64 without the “=” padding.") @item Can encode frozendict immutable dictionaries. @end itemize") (license license:asl2.0))) + +(define-public python-signedjson + (package + (name "python-signedjson") + (version "1.1.1") + (source + (origin + (method url-fetch) + (uri (pypi-uri "signedjson" version)) + (sha256 + (base32 "0280f8zyycsmd7iy65bs438flm7m8ffs1kcxfbvhi8hbazkqc19m")))) + (build-system python-build-system) + (propagated-inputs + `(("python-canonicaljson" ,python-canonicaljson) + ("python-importlib-metadata" ,python-importlib-metadata) + ("python-pynacl" ,python-pynacl) + ("python-typing-extensions" ,python-typing-extensions) + ("python-unpaddedbase64" ,python-unpaddedbase64))) + (native-inputs + `(("python-setuptools-scm" ,python-setuptools-scm))) + (home-page "https://github.com/matrix-org/python-signedjson") + (synopsis "Sign JSON objects with ED25519 signatures") + (description + "Sign JSON objects with ED25519 signatures. + +@itemize +@item More than one entity can sign the same object. +@item Each entity can sign the object with more than one key making it easier to +rotate keys +@item ED25519 can be replaced with a different algorithm. +@item Unprotected data can be added to the object under the @dfn{\"unsigned\"} +key. +@end itemize") + (license license:asl2.0))) |