2024-01-02 16:21:30 +08:00
|
|
|
# Copyright 2013-2024 Lawrence Livermore National Security, LLC and other
|
2023-10-04 23:34:23 +08:00
|
|
|
# Spack Project Developers. See the top-level COPYRIGHT file for details.
|
|
|
|
#
|
|
|
|
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
|
|
|
|
|
|
|
from spack.package import *
|
|
|
|
|
|
|
|
|
|
|
|
class PyAwscrt(PythonPackage):
|
|
|
|
"""Python 3 bindings for the AWS Common Runtime."""
|
|
|
|
|
|
|
|
homepage = "https://docs.aws.amazon.com/sdkref/latest/guide/common-runtime.html"
|
|
|
|
pypi = "awscrt/awscrt-0.16.16.tar.gz"
|
|
|
|
|
2024-05-21 00:21:09 +08:00
|
|
|
maintainers("climbfuji", "teaguesterling")
|
2023-10-04 23:34:23 +08:00
|
|
|
|
2023-12-23 03:29:11 +08:00
|
|
|
license("Apache-2.0")
|
|
|
|
|
2024-05-21 00:21:09 +08:00
|
|
|
version("0.20.9", sha256="243785ac9ee64945e0479c2384325545f29597575743ce84c371556d1014e63e")
|
|
|
|
version("0.19.19", sha256="1c1511535dee146a6c26a382ed3ead56259a105b3b7d7d823553ae567d038dfe")
|
|
|
|
version("0.19.18", sha256="350b6efd8ebee082ea3f3e52c59a3c3ec594cdaf01db8b4853dceb9fec90c89d")
|
2023-10-04 23:34:23 +08:00
|
|
|
version("0.16.16", sha256="13075df2c1d7942fe22327b6483274517ee0f6ae765c4e6b6ae9ef5b4c43a827")
|
|
|
|
|
2023-10-15 05:02:41 +08:00
|
|
|
depends_on("cmake@3.1:", type=("build"))
|
|
|
|
depends_on("openssl", type=("build"), when="platform=linux")
|
2023-10-04 23:34:23 +08:00
|
|
|
depends_on("py-setuptools", type=("build"))
|
2023-10-15 05:02:41 +08:00
|
|
|
|
|
|
|
# On Linux, tell aws-crt-python to use libcrypto from spack (openssl)
|
|
|
|
def setup_build_environment(self, env):
|
|
|
|
with when("platform=linux"):
|
|
|
|
env.set("AWS_CRT_BUILD_USE_SYSTEM_LIBCRYPTO", 1)
|