void-packages/srcpkgs/python3-aiohttp/template

23 lines
819 B
Bash

# Template file for 'python3-aiohttp'
pkgname=python3-aiohttp
version=3.7.3
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-idna-ssl python3-yarl python3-typing_extensions python3-multidict"
short_desc="HTTP client/server for asyncio (PEP-3156)"
maintainer="Michael Aldridge <maldridge@voidlinux.org>"
license="Apache-2.0"
homepage="https://aiohttp.readthedocs.io/"
distfiles="${PYPI_SITE}/a/aiohttp/aiohttp-${version}.tar.gz"
checksum=9c1a81af067e72261c9cbe33ea792893e83bc6aa987bfbd6fdc1e5e7b22777c4
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
}