1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-23 11:15:13 +03:00
aports/testing/py3-mbedtls/APKBUILD
2023-07-16 04:23:47 +00:00

52 lines
1.3 KiB
Text

# Contributor: Jonas <3426-spameier@users.gitlab.alpinelinux.org>
# Maintainer: Jonas <3426-spameier@users.gitlab.alpinelinux.org>
pkgname=py3-mbedtls
_pyname=python-mbedtls
pkgver=2.7.1
pkgrel=0
pkgdesc="hash, hmac, RSA, ECC, X.509, TLS, DTLS, handshakes, and secrets with an mbed TLS back end"
url="https://github.com/Synss/python-mbedtls"
arch="all"
license="MIT"
depends="
mbedtls
py3-certifi
py3-typing-extensions
"
makedepends="
cython
mbedtls-dev
py3-gpep517
py3-setuptools
py3-wheel
python3-dev
"
checkdepends="
py3-pytest-repeat
py3-pytest-timeout
py3-readme_renderer
"
subpackages="$pkgname-pyc"
source="$pkgname-$pkgver.tar.gz::https://github.com/Synss/python-mbedtls/archive/refs/tags/$pkgver.tar.gz"
builddir="$srcdir/$_pyname-$pkgver"
build() {
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 pytest
}
package() {
python3 -m installer -d "$pkgdir" .dist/*.whl
rm -rf "$pkgdir"/usr/lib/python3.*/site-packages/tests/ # remove tests
}
sha512sums="
e982bc3c616ebbd9bb2db7a8190cac2d9889c74ec7263d00adba4452d10f7c602613b6d2f973187dd5748ddc82e153f3ce664ca8b92d19024f76aa44a718ef44 py3-mbedtls-2.7.1.tar.gz
"