spack/var/spack/repos/builtin/packages/scitokens-cpp/package.py
Andrea Valenzuela 5a434cb840
Add scitokens-cpp recipe and also as a variant for xrootd (#30362)
* Add scitokens-cpp recipe

* Add scitokens-cpp variant in xrootd

* Fix typo

* Fix flake8 style errors

* Update license date

Co-authored-by: Tamara Dahlgren <35777542+tldahlgren@users.noreply.github.com>

Co-authored-by: Tamara Dahlgren <35777542+tldahlgren@users.noreply.github.com>
2022-05-04 13:03:50 -07:00

26 lines
908 B
Python

# Copyright 2013-2022 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 import *
class ScitokensCpp(CMakePackage):
""" A C++ implementation of the SciTokens library with a C library interface.
SciTokens provide a token format for distributed authorization. """
homepage = "https://github.com/scitokens/scitokens-cpp"
url = "https://github.com/scitokens/scitokens-cpp/archive/refs/tags/v0.7.0.tar.gz"
version('0.7.0', sha256='72600cf32523b115ec7abf4ac33fa369e0a655b3d3b390e1f68363e6c4e961b6')
depends_on('sqlite')
depends_on('curl')
depends_on('uuid', type='build')
# https://github.com/scitokens/scitokens-cpp/issues/72
@when('^openssl@3:')
def patch(self):
filter_file(' -Werror', '', 'CMakeLists.txt')