From 2278816cb3a503b1a696edbadc9eb91cfe302abe Mon Sep 17 00:00:00 2001 From: Jeremy Fix Date: Fri, 23 Feb 2024 13:58:11 +0100 Subject: [PATCH] py-jwcrypto: new package (#42783) * adds the spack recipe for py-jwcrypto * split long line to fix E501 * Specify versions for py-cryptography and py-typing-extensions Co-authored-by: Adam J. Stewart --------- Co-authored-by: Adam J. Stewart --- .../builtin/packages/py-jwcrypto/package.py | 31 +++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 var/spack/repos/builtin/packages/py-jwcrypto/package.py diff --git a/var/spack/repos/builtin/packages/py-jwcrypto/package.py b/var/spack/repos/builtin/packages/py-jwcrypto/package.py new file mode 100644 index 0000000000..4220f3aed4 --- /dev/null +++ b/var/spack/repos/builtin/packages/py-jwcrypto/package.py @@ -0,0 +1,31 @@ +# Copyright 2013-2023 Lawrence Livermore National Security, LLC and other +# Spack Project Developers. See the top-level COPYRIGHT file for details. +# +# SPDX-License-Identifier: (Apache-2.0 OR MIT) + +from spack.package import * + + +class PyJwcrypto(PythonPackage): + """ + JWCrypto is an implementation of the Javascript Object Signing and Encryption (JOSE) + Web Standards as they are being developed in the JOSE IETF Working Group and related + technology. + + JWCrypto uses the Cryptography package for all the crypto functions. + """ + + homepage = "https://jwcrypto.readthedocs.io/en/latest/" + pypi = "jwcrypto/jwcrypto-1.5.4.tar.gz" + git = "https://github.com/latchset/jwcrypto" + + maintainers("jeremyfix") + + license("LGPL-3.0") + + version("1.5.4", sha256="0815fbab613db99bad85691da5f136f8860423396667728a264bcfa6e1db36b0") + + depends_on("py-setuptools", type="build") + + depends_on("py-cryptography@3.4:", type=("build", "run")) + depends_on("py-typing-extensions@4.5:", type=("build", "run"))