aports/testing/py3-unicrypto/APKBUILD
Celeste 3231216f37 testing/py3-unicrypto: enable on loongarch64
no longer blocked by py3-mbedtls
2024-07-16 15:08:30 +00:00

47 lines
1.2 KiB
Text

# Contributor: Jonas <3426-spameier@users.gitlab.alpinelinux.org>
# Maintainer: Jonas <3426-spameier@users.gitlab.alpinelinux.org>
pkgname=py3-unicrypto
_pyname=unicrypto
pkgver=0.0.10
pkgrel=2
pkgdesc="Unified interface for cryptographic libraries"
url="https://github.com/skelsec/unicrypto"
arch="noarch"
license="MIT"
depends="
py3-cryptography
py3-mbedtls
py3-pycryptodome
py3-pycryptodomex
python3
"
makedepends="
py3-gpep517
py3-wheel
py3-setuptools
"
checkdepends="py3-pytest"
subpackages="$pkgname-pyc"
source="$pkgname-$pkgver.tar.gz::https://github.com/skelsec/unicrypto/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="
fda2a0031e608dbba7721c5251e2b1663d492c6982640e472b7049893e567e7b088756f1be514ed08a2785603985852e711d7cec70cbb7833b79e5406f9ec59a py3-unicrypto-0.0.10.tar.gz
"