# Contributor: Francesco Colista # Maintainer: Francesco Colista pkgname=py3-aiohttp _pkgname=aiohttp pkgver=2.3.1 pkgrel=1 pkgdesc="HTTP client/server for asyncio" url="http://pypi.python.org/pypi/aiohttp" arch="all !aarch64" license="ASL 2.0" depends="python3 py3-async-timeout py3-chardet py3-multidict py3-yarl" makedepends="python3-dev" subpackages="$pkgname-dev" source="$pkgname-$pkgver.tar.gz::https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz" builddir="$srcdir/$_pkgname-$pkgver" check() { cd "$builddir" python3 setup.py check } prepare() { default_prepare # Workaround to remove x86_64 .so file that is shipped in source # and make strip fails in arches != from x86_64 rm "$srcdir"/aiohttp-2.3.1/aiohttp/_http_parser.cpython-36m-x86_64-linux-gnu.so } build() { cd "$builddir" python3 setup.py build } package() { cd "$builddir" python3 setup.py install --root="$pkgdir" --optimize=1 } sha512sums="1be4e2e9e7ba7dc59427fce60b98a026321a750011517fc6c044c0c5b0d6297b840c42f099224944dd19b00cda360a5f688cd022de73e98a03e3266afe9c5cf4 py3-aiohttp-2.3.1.tar.gz"