diff options
author | Wouter Deconinck <wdconinc@gmail.com> | 2023-02-06 23:23:03 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-02-06 23:23:03 -0600 |
commit | ae98d2ba2fcefa9d027e2d6ccc6e7558a32e7228 (patch) | |
tree | fd3a82fbfbc534c4a5fa1487948ba5a49bd48c86 /var/spack/repos/builtin/packages/py-gssapi/package.py | |
parent | 8e49bf0c5bec05bb8cdabf4eacc8098d094b8b13 (diff) | |
download | spack-ae98d2ba2fcefa9d027e2d6ccc6e7558a32e7228.tar.gz spack-ae98d2ba2fcefa9d027e2d6ccc6e7558a32e7228.tar.bz2 spack-ae98d2ba2fcefa9d027e2d6ccc6e7558a32e7228.tar.xz spack-ae98d2ba2fcefa9d027e2d6ccc6e7558a32e7228.zip |
Support packages for using scitokens on OSG (#35334)
* Support packages for using scitokens on OSG
The Open Science Grid (OSG) encourages scitokens to provide
certain services (e.g. writing to xrootd). Spack already
supports this through scitokens-cpp and xrootd +scitokens-cpp.
This adds py-htgettoken, a python utility to get a scitoken
from a vault through web authentication. To support htgettoken,
this also adds py-gssapi.
This also adds the OSG CA cert collection which is typically
at /etc/grid-security but pointed to in user installations by
the X509_CERTS_DIR variable.
This allows userspace through spack for functionality that
otherwise depends on installing the RPMs provided by OSG.
* fine, I'll fix style myself then
* fix maintainers
* py-gssapi: version before depends_on
* remove list_url
* add documentation on reason for git describe version numbers
* Apply suggestions from code review
Co-authored-by: Adam J. Stewart <ajstewart426@gmail.com>
* better BEARER_TOKEN definition
* import os
* remove older version that don't build with setuptools
---------
Co-authored-by: Adam J. Stewart <ajstewart426@gmail.com>
Diffstat (limited to 'var/spack/repos/builtin/packages/py-gssapi/package.py')
-rw-r--r-- | var/spack/repos/builtin/packages/py-gssapi/package.py | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/py-gssapi/package.py b/var/spack/repos/builtin/packages/py-gssapi/package.py new file mode 100644 index 0000000000..7ae8fed95d --- /dev/null +++ b/var/spack/repos/builtin/packages/py-gssapi/package.py @@ -0,0 +1,23 @@ +# 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 PyGssapi(PythonPackage): + """Python-GSSAPI provides both low-level and high level wrappers + around the GSSAPI C libraries.""" + + homepage = "https://github.com/pythongssapi/python-gssapi" + pypi = "gssapi/gssapi-1.8.2.tar.gz" + + maintainers("wdconinc") + + version("1.8.2", sha256="b78e0a021cc91158660e4c5cc9263e07c719346c35a9c0f66725e914b235c89a") + + depends_on("py-cython@0.29.29:2", type="build") + depends_on("py-setuptools@40.6.0:", type="build") + + depends_on("py-decorator", type=("build", "run")) |