guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

123/455: gnu: Add python-joserfc.


From: guix-commits
Subject: 123/455: gnu: Add python-joserfc.
Date: Mon, 20 Jan 2025 15:46:47 -0500 (EST)

rekado pushed a commit to branch master
in repository guix.

commit 0328ebfec3f8ed76b04f61a2c6624b7e27ad9d98
Author: Ricardo Wurmus <rekado@elephly.net>
AuthorDate: Fri Jan 3 08:52:18 2025 +0100

    gnu: Add python-joserfc.
    
    * gnu/packages/python-web.scm (python-joserfc): New variable.
    
    Change-Id: If4c297022059eb2cc40d8d467ef47e3b8a2aa6eb
---
 gnu/packages/python-web.scm | 29 +++++++++++++++++++++++++++++
 1 file changed, 29 insertions(+)

diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm
index 4e7545b86e..543832de46 100644
--- a/gnu/packages/python-web.scm
+++ b/gnu/packages/python-web.scm
@@ -1804,6 +1804,35 @@ JSON Web Algorithms (JWA) - collectively can be used to 
encrypt and/or sign
 content using a variety of algorithms.")
     (license license:expat)))
 
+(define-public python-joserfc
+  (package
+    (name "python-joserfc")
+    (version "1.0.1")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (pypi-uri "joserfc" version))
+       (sha256
+        (base32 "11m600bmj70bp96wxhwvyj4d57w0zahzq3vic7s4a4k85pl7nl64"))))
+    (build-system pyproject-build-system)
+    (arguments
+     (list
+      #:test-flags
+      ;; No module named 'Crypto'
+      '(list "--ignore=tests/jwe/test_chacha20.py"
+             ;; Deprecation warnings are not raised.
+             "-k" (string-append "not test_guess_bytes_key"
+                                 " and not test_guess_callable_key"
+                                 " and not test_guess_str_key"))))
+    (propagated-inputs (list python-cryptography))
+    (native-inputs (list python-pytest python-setuptools python-wheel))
+    (home-page "https://github.com/authlib/joserfc";)
+    (synopsis "Python library for JOSE RFCs")
+    (description
+     "This package provides a Python library for JOSE RFCs, including JWS,
+JWE, JWK, JWA, and JWT.")
+    (license license:bsd-3)))
+
 (define-public python-jwcrypto
   (package
     (name "python-jwcrypto")



reply via email to

[Prev in Thread] Current Thread [Next in Thread]