mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-19 01:05:15 +03:00
51 lines
1.3 KiB
Text
51 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.6.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
|
|
"
|
|
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="
|
|
aa50e12edde85dd8a9081c8d0f23ad01e398d589abc1223db2007130194cd845e4de4df7e8f71f4d8cbe5290e0b47ea03b32810254064bb1e9bae6d245742bed py3-mbedtls-2.6.1.tar.gz
|
|
"
|