aboutsummaryrefslogtreecommitdiff
path: root/gnu/packages/python-crypto.scm
diff options
context:
space:
mode:
authorMark H Weaver <mhw@netris.org>2018-01-19 23:59:20 -0500
committerMark H Weaver <mhw@netris.org>2018-01-19 23:59:20 -0500
commite074a655dd6497daafbd62737e3b63f3d5aa7985 (patch)
tree2b198ba5c664cdd58e155f3c0113d1cebde0fc91 /gnu/packages/python-crypto.scm
parent6d7b26a39faf42c37f15dc64a30a77e5e194ea23 (diff)
parentccb5cac17be98aaa9c3225605d6170c675d8e8e6 (diff)
downloadpatches-e074a655dd6497daafbd62737e3b63f3d5aa7985.tar
patches-e074a655dd6497daafbd62737e3b63f3d5aa7985.tar.gz
Merge branch 'master' into core-updates
Diffstat (limited to 'gnu/packages/python-crypto.scm')
-rw-r--r--gnu/packages/python-crypto.scm37
1 files changed, 37 insertions, 0 deletions
diff --git a/gnu/packages/python-crypto.scm b/gnu/packages/python-crypto.scm
index da59a1d003..eacd085e55 100644
--- a/gnu/packages/python-crypto.scm
+++ b/gnu/packages/python-crypto.scm
@@ -678,3 +678,40 @@ Python.")
(define-public python2-ecpy
(package-with-python2 python-ecpy))
+
+(define-public python-josepy
+ (package
+ (name "python-josepy")
+ (version "1.0.1")
+ (source (origin
+ (method url-fetch)
+ (uri (pypi-uri "josepy" version))
+ (sha256
+ (base32
+ "1k0ahzzaq2rrjiifwbhbp7vm8z4zk0ipgiqwicil80kzlf6bhj4z"))))
+ (build-system python-build-system)
+ (arguments
+ ;; The tests require pytest >= 3.2, which is not yet packaged.
+ '(#:tests? #f))
+ (propagated-inputs
+ `(("python-cryptography" ,python-cryptography)
+ ("python-pyopenssl" ,python-pyopenssl)
+ ("python-six" ,python-six)))
+;; TODO Enable when we have pytest >= 3.2.
+; (native-inputs
+; `(("python-coverage" ,python-coverage)
+; ("python-flake8" ,python-flake8)
+; ("python-isort" ,python-isort)
+; ("python-mock" ,python-mock)
+; ("python-pytest" ,python-pytest-3.0)
+; ("python-pytest-cov" ,python-pytest-cov)
+; ("python-pytest-cache" ,python-pytest-cache)
+; ("python-pytest-flake8" ,python-pytest-flake8)))
+ (home-page "https://github.com/certbot/josepy")
+ (synopsis "JOSE protocol implementation in Python")
+ (description "This package provides a Python implementation of the JOSE
+protocol (Javascript Object Signing and Encryption).")
+ (license license:asl2.0)))
+
+(define-public python2-josepy
+ (package-with-python2 python-josepy))