spack/var/spack/repos/builtin/packages/py-awscrt/package.py

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

32 lines
1.3 KiB
Python
Raw Normal View History

# Copyright 2013-2024 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 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"
maintainers("climbfuji", "teaguesterling")
license("Apache-2.0")
version("0.20.9", sha256="243785ac9ee64945e0479c2384325545f29597575743ce84c371556d1014e63e")
version("0.19.19", sha256="1c1511535dee146a6c26a382ed3ead56259a105b3b7d7d823553ae567d038dfe")
version("0.19.18", sha256="350b6efd8ebee082ea3f3e52c59a3c3ec594cdaf01db8b4853dceb9fec90c89d")
version("0.16.16", sha256="13075df2c1d7942fe22327b6483274517ee0f6ae765c4e6b6ae9ef5b4c43a827")
depends_on("cmake@3.1:", type=("build"))
depends_on("openssl", type=("build"), when="platform=linux")
depends_on("py-setuptools", type=("build"))
# 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)