testing/py3-aiohttp-session: build with gpep517

This commit is contained in:
ptrcnull 2024-08-30 23:23:42 +02:00
parent eb48a5303b
commit 68e094223e

View file

@ -3,29 +3,28 @@
pkgname=py3-aiohttp-session
_pkgname=aiohttp_session
pkgver=2.12.0
pkgrel=3
pkgrel=4
pkgdesc="Sessions support for aiohttp"
url="https://aiohttp-session.readthedocs.io/"
arch="noarch"
license="Apache-2.0"
# Requires packages for tests which are not available
options="!check"
depends="py3-aiohttp"
makedepends="python3-dev py3-setuptools"
makedepends="python3-dev py3-setuptools py3-gpep517"
subpackages="$pkgname-pyc"
source="aiohttp-session-$pkgver.tar.gz::https://github.com/aio-libs/aiohttp-session/archive/v$pkgver.tar.gz"
builddir="$srcdir"/aiohttp-session-$pkgver
# Requires packages for tests which are not available
options="!check"
build() {
python3 setup.py build
}
check() {
python3 setup.py test
gpep517 build-wheel \
--wheel-dir .dist \
--output-fd 3 3>&1 >&2
}
package() {
python3 setup.py install --skip-build --root="$pkgdir"
gpep517 install-wheel --destdir "$pkgdir" \
.dist/*.whl
}
sha512sums="