From 93c01fe831335b30aa3522e7292693ebea2ac990 Mon Sep 17 00:00:00 2001 From: Piraty Date: Tue, 15 Jun 2021 18:38:28 +0200 Subject: [PATCH] python3-gevent: update to 21.1.2. --- .../python3-gevent/patches/fix-tests.patch | 13 ++++++++++ srcpkgs/python3-gevent/template | 25 +++++++++++++------ 2 files changed, 30 insertions(+), 8 deletions(-) create mode 100644 srcpkgs/python3-gevent/patches/fix-tests.patch diff --git a/srcpkgs/python3-gevent/patches/fix-tests.patch b/srcpkgs/python3-gevent/patches/fix-tests.patch new file mode 100644 index 00000000000..61ddd278d72 --- /dev/null +++ b/srcpkgs/python3-gevent/patches/fix-tests.patch @@ -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), diff --git a/srcpkgs/python3-gevent/template b/srcpkgs/python3-gevent/template index c041e3e3ce8..4ec0c1ce42e 100644 --- a/srcpkgs/python3-gevent/template +++ b/srcpkgs/python3-gevent/template @@ -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 " 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 }