aports/testing/py3-aiohttp-remotes/APKBUILD
2024-11-04 13:23:11 +01:00

54 lines
1.3 KiB
Text

# Contributor: Henrik Riomar <henrik.riomar@gmail.com>
# Maintainer: Henrik Riomar <henrik.riomar@gmail.com>
pkgname=py3-aiohttp-remotes
_pkgname=aiohttp-remotes
pkgver=1.3.0
pkgrel=0
pkgdesc="A set of useful tools for aiohttp.web server"
url="https://github.com/aio-libs/aiohttp-remotes"
arch="noarch"
license="MIT"
checkdepends="
py3-pytest
py3-pytest-aiohttp
py3-pytest-asyncio
py3-pytest-cov
py3-trustme
"
makedepends="
py3-flit
py3-installer
py3-setuptools
"
depends="
py3-aiohttp
py3-yarl
python3
"
subpackages="$pkgname-pyc"
source="
https://github.com/aio-libs/aiohttp-remotes/archive/v$pkgver/$_pkgname-$pkgver.tar.gz
"
builddir="$srcdir/$_pkgname-$pkgver"
build() {
flit build --format wheel
}
check() {
# do test installation
python3 -m installer -d "$builddir"/test_install dist/aiohttp_remotes-$pkgver-py3-none-any.whl
PYTHONPATH="$(echo "$builddir"/test_install/usr/lib/python3*/site-packages)"
export PYTHONPATH
# run tests (skip async tests for now)
pytest-3 tests/test_utils.py
}
package() {
python3 -m installer -d "$pkgdir" dist/aiohttp_remotes-$pkgver-py3-none-any.whl
}
sha512sums="
376ac34db8bad2c873fadf6684576033e93a83af9e56bda73fa0eb912d7463da6b57f88d037059446cabda811362cb8970f6ce2643d30b41a2ac6b2483adfb3a aiohttp-remotes-1.3.0.tar.gz
"