void-packages/srcpkgs/python3-aiohttp/template

25 lines
904 B
Bash

# Template file for 'python3-aiohttp'
pkgname=python3-aiohttp
version=3.5.1
revision=1
wrksrc="aiohttp-${version}"
build_style=python3-module
pycompile_module="aiohttp"
hostmakedepends="python3-Cython python3-setuptools"
makedepends="python3-devel http-parser-devel"
depends="python3-async-timeout python3-attrs python3-chardet python3-idna-ssl
python3-yarl"
short_desc="HTTP client/server for asyncio (PEP-3156)"
maintainer="Michael Aldridge <maldridge@VoidLinux.eu>"
license="Apache-2.0"
homepage="https://aiohttp.readthedocs.io/"
#changelog="https://raw.githubusercontent.com/aio-libs/aiohttp/master/CHANGES.rst"
distfiles="https://github.com/aio-libs/aiohttp/archive/v${version}.tar.gz"
checksum=2074b00a8b883251e18093e374e060d85be6c46ac13663a4702261d300176712
pre_build() {
# use system http-parser
sed -i '/http_parser\.c/d' setup.py
sed -i '/http_parser\.h/s/".*\//"/' aiohttp/_cparser.pxd
}