# Template file for 'python3-aiohttp' pkgname=python3-aiohttp version=3.7.4 revision=2 wrksrc="aiohttp-${version}" build_style=python3-module hostmakedepends="python3-setuptools" makedepends="python3-devel http-parser-devel" depends="python3-async-timeout python3-attrs python3-chardet python3-yarl python3-typing_extensions python3-multidict" short_desc="HTTP client/server for asyncio (PEP-3156)" maintainer="Michael Aldridge " license="Apache-2.0" homepage="https://aiohttp.readthedocs.io/" distfiles="${PYPI_SITE}/a/aiohttp/aiohttp-${version}.tar.gz" checksum=5d84ecc73141d0a0d61ece0742bb7ff5751b0657dab8405f899d3ceb104cc7de post_patch() { # use system http-parser vsed -i '/http_parser\.c/d' -i setup.py vsed -i '/http_parser\.h/s/".*\//"/' -i aiohttp/_cparser.pxd }