python3-gevent: update to 21.1.2.

This commit is contained in:
Piraty 2021-06-15 18:38:28 +02:00
parent 5c97d14716
commit 93c01fe831
2 changed files with 30 additions and 8 deletions

View File

@ -0,0 +1,13 @@
OSError: [Errno 97] Address family not supported by protocol
--- src/gevent/tests/test__socket.py
+++ src/gevent/tests/test__socket.py
@@ -483,7 +483,7 @@
# use', which makes even less sense. The manylinux
# 2010 environment produces 'errno 99 Cannot assign
# requested address', which, I guess?
- 'refused|not known|already in use|assign'
+ 'refused|not known|already in use|assign|not supported'
):
socket.create_connection(
(greentest.DEFAULT_BIND_ADDR, connect_port),

View File

@ -1,24 +1,33 @@
# Template file for 'python3-gevent'
pkgname=python3-gevent
version=20.9.0
revision=5
version=21.1.2
revision=1
wrksrc="gevent-${version}"
build_style=python3-module
hostmakedepends="python3-setuptools python3-Cython"
makedepends="python3-devel libev-devel c-ares-devel"
depends="python3-greenlet python3-zope.event python3-zope.interface"
makedepends="python3-devel libev-devel c-ares-devel python3-greenlet-devel"
depends="python3-dnspython python3-greenlet python3-zope.event python3-zope.interface"
checkdepends="${depends} iana-etc"
short_desc="Coroutine-based Python3 networking library"
maintainer="Orphaned <orphan@voidlinux.org>"
license="MIT"
homepage="http://www.gevent.org/"
distfiles="https://github.com/gevent/gevent/archive/${version}.tar.gz"
checksum=a43d6b8335eae4d1ebb3f9585bcb78c397c6f1f141eb2449838167cbb4a40ee3
checksum=1fc6579fee04c0bc348cb1dcbc10f822129e6af7dcf2c52c24f1497cea3bd45c
export LIBEV_EMBED=0
export CARES_EMBED=0
post_extract() {
# purge bundled dependencies
rm -rf deps
}
do_check() {
PYTHONPATH="$(cd build/lib* && pwd)" python -m gevent.tests
}
post_install() {
vlicense LICENSE
# remove python2 compat stuff
rm -f ${DESTDIR}/${py3_sitelib}/gevent/_*2.py
vlicense LICENSE
# don't ship tests
rm -rf ${DESTDIR}/${py3_sitelib}/gevent/tests
}