ayaports/backports/py3-jwcrypto/APKBUILD

38 lines
1.1 KiB
Text
Raw Normal View History

2023-01-11 00:40:45 +00:00
# Contributor: prspkt <prspkt@protonmail.com>
# Maintainer: prspkt <prspkt@protonmail.com>
pkgname=py3-jwcrypto
_pkgname=jwcrypto
2023-11-24 18:25:44 +00:00
pkgver=1.5.0
pkgrel=1
2023-01-11 00:40:45 +00:00
pkgdesc="Python module implementing JOSE Web standards"
url="https://github.com/latchset/jwcrypto"
arch="noarch"
license="LGPL-3.0-only"
2023-11-24 18:25:44 +00:00
depends="python3 py3-deprecated py3-cryptography"
makedepends="py3-gpep517 py3-setuptools py3-wheel"
2023-01-11 00:40:45 +00:00
checkdepends="py3-pytest"
subpackages="$pkgname-doc $pkgname-pyc"
2023-01-11 00:40:45 +00:00
source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz"
2023-11-24 18:25:44 +00:00
builddir="$srcdir/$_pkgname-$pkgver"
2023-01-11 00:40:45 +00:00
build() {
2023-11-24 18:25:44 +00:00
gpep517 build-wheel \
--wheel-dir .dist \
--output-fd 3 3>&1 >&2
2023-01-11 00:40:45 +00:00
}
check() {
2023-11-24 18:25:44 +00:00
python3 -m venv --clear --without-pip --system-site-packages .testenv
.testenv/bin/python3 -m installer .dist/*.whl
.testenv/bin/python3 -m pytest
2023-01-11 00:40:45 +00:00
}
package() {
2023-11-24 18:25:44 +00:00
python3 -m installer -d "$pkgdir" \
.dist/*.whl
2023-01-11 00:40:45 +00:00
}
2023-11-24 18:25:44 +00:00
sha512sums="
8cb638203de32c5d63cc567069fc0ccf2195bb9a1f9783b747e7b77d38fb01d9512e82406f925010f70e4b7e73c8d699e0c32c5c89ee71cb99dd594a7e84c47e jwcrypto-1.5.0.tar.gz
"