python3-aiohttp: update to 3.7.2.
This commit is contained in:
parent
d72ff85c70
commit
d6c0476e97
|
@ -1,10 +1,9 @@
|
|||
# Template file for 'python3-aiohttp'
|
||||
pkgname=python3-aiohttp
|
||||
version=3.7.1
|
||||
version=3.7.2
|
||||
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
|
||||
|
@ -14,13 +13,16 @@ maintainer="Michael Aldridge <maldridge@voidlinux.org>"
|
|||
license="Apache-2.0"
|
||||
homepage="https://aiohttp.readthedocs.io/"
|
||||
distfiles="https://github.com/aio-libs/aiohttp/archive/v${version}.tar.gz"
|
||||
checksum=6075f4fb46cfb73f9282709272ec4755967668c633b6276433f4bad5b6db1b2b
|
||||
checksum=22ed7395d53c03f0f4872e5cdd051330bbce33f3d81b0af9aefd48a7077db040
|
||||
|
||||
pre_build() {
|
||||
# use system http-parser
|
||||
sed -i '/http_parser\.c/d' setup.py
|
||||
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
|
||||
|
||||
# Ships without cythonized modules
|
||||
local _pyx
|
||||
for _pyx in aiohttp/*.pyx; do
|
||||
cython -3 -o "${_pyx%.pyx}.c" -I aiohttp "${_pyx}"
|
||||
done
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue