# Contributor: Henrik Riomar # Maintainer: Henrik Riomar pkgname=py3-aiohttp-remotes _pkgname=aiohttp-remotes pkgver=1.2.0 pkgrel=2 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=" b625b136a071c67a7a8e28ce63f56cc84712cce9193d2573a6dd58ef89ae30b0d817217ce9e5eb6531285449108c3b282c0dbf6c4f1a049ee027f0fb59dbc1ec aiohttp-remotes-1.2.0.tar.gz "