mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-06-04 08:55:20 +02:00
https://github.com/awslabs/aws-crt-python/releases/tag/v0.27.0 https://github.com/awslabs/aws-crt-python/releases/tag/v0.27.1 https://github.com/awslabs/aws-crt-python/releases/tag/v0.27.2
59 lines
1.4 KiB
Text
59 lines
1.4 KiB
Text
maintainer="fossdd <fossdd@pwned.life>"
|
|
pkgname=py3-awscrt
|
|
pkgver=0.27.2
|
|
pkgrel=0
|
|
pkgdesc="Python bindings for the AWS Common Runtime"
|
|
url="https://github.com/awslabs/aws-crt-python"
|
|
# s390x: big endian is explicitly unsupported
|
|
arch="all !s390x"
|
|
license="Apache-2.0"
|
|
# use the cpp one to just pull the aws stack
|
|
makedepends="
|
|
aws-crt-cpp-dev
|
|
openssl-dev
|
|
py3-gpep517
|
|
py3-setuptools
|
|
py3-wheel
|
|
python3-dev
|
|
samurai
|
|
"
|
|
checkdepends="py3-websockets"
|
|
subpackages="$pkgname-pyc"
|
|
source="$pkgname-$pkgver.tar.gz::https://github.com/awslabs/aws-crt-python/archive/refs/tags/v$pkgver.tar.gz"
|
|
builddir="$srcdir/aws-crt-python-$pkgver"
|
|
options="net" # tests need internet
|
|
|
|
case "$CARCH" in
|
|
arm*|aarch64|ppc64le|loongarch64)
|
|
# too slow at running tests / fix later
|
|
options="$options !check"
|
|
;;
|
|
esac
|
|
prepare() {
|
|
default_prepare
|
|
|
|
# by default it's just 1.0.0.dev0
|
|
echo "__version__ = '$pkgver'" >> awscrt/__init__.py
|
|
}
|
|
|
|
build() {
|
|
export AWS_CRT_BUILD_USE_SYSTEM_LIBCRYPTO=1
|
|
gpep517 build-wheel \
|
|
--wheel-dir .dist \
|
|
--output-fd 3 3>&1 >&2
|
|
}
|
|
|
|
check() {
|
|
python3 -m venv --clear --without-pip --system-site-packages .testenv
|
|
.testenv/bin/python3 -m installer .dist/*.whl
|
|
.testenv/bin/python3 -m unittest discover test
|
|
}
|
|
|
|
package() {
|
|
python3 -m installer -d "$pkgdir" \
|
|
.dist/*.whl
|
|
}
|
|
|
|
sha512sums="
|
|
3c2117fb74f1814ca5b3846c5dc8051fb74397529273536c3e1d2522182812f8cd7bbf6998aa9cffaeaadd0023a7003e018f363d8021ea469454abd34a3df788 py3-awscrt-0.27.2.tar.gz
|
|
"
|