1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-22 18:55:29 +03:00
aports/testing/py3-aiohttp-remotes/APKBUILD
2022-11-22 20:33:36 +01:00

53 lines
1.2 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.2.0
pkgrel=1
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
"
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="
b625b136a071c67a7a8e28ce63f56cc84712cce9193d2573a6dd58ef89ae30b0d817217ce9e5eb6531285449108c3b282c0dbf6c4f1a049ee027f0fb59dbc1ec aiohttp-remotes-1.2.0.tar.gz
"