python3-aiohttp: update to 3.6.2

This commit is contained in:
Nathan Owens 2019-11-12 19:29:39 -06:00 committed by Juan RP
parent 1554846399
commit 7545466203
1 changed files with 6 additions and 4 deletions

View File

@ -1,7 +1,7 @@
# Template file for 'python3-aiohttp' # Template file for 'python3-aiohttp'
pkgname=python3-aiohttp pkgname=python3-aiohttp
version=3.5.4 version=3.6.2
revision=3 revision=1
wrksrc="aiohttp-${version}" wrksrc="aiohttp-${version}"
build_style=python3-module build_style=python3-module
pycompile_module="aiohttp" pycompile_module="aiohttp"
@ -13,12 +13,14 @@ short_desc="HTTP client/server for asyncio (PEP-3156)"
maintainer="Michael Aldridge <maldridge@voidlinux.org>" maintainer="Michael Aldridge <maldridge@voidlinux.org>"
license="Apache-2.0" license="Apache-2.0"
homepage="https://aiohttp.readthedocs.io/" 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" distfiles="https://github.com/aio-libs/aiohttp/archive/v${version}.tar.gz"
checksum=9385ff2ea20249be9119236b3367356465cb92dc55b463d12239c7cf36024bba checksum=4ad2d8393843ea0c7b50a93bf04fb1cf20b93c0a5e958de128efcd2e5f8adf80
pre_build() { pre_build() {
# use system http-parser # use system http-parser
sed -i '/http_parser\.c/d' setup.py sed -i '/http_parser\.c/d' setup.py
sed -i '/http_parser\.h/s/".*\//"/' aiohttp/_cparser.pxd sed -i '/http_parser\.h/s/".*\//"/' aiohttp/_cparser.pxd
# Fix setup.py syntax error
vsed -e "s|'aiohttp/_find_header.c|['_aiohttp/_find_header.c|" \
-i setup.py
} }