From 59a322df638fae9e465c1da01876d42b5da9be1a Mon Sep 17 00:00:00 2001 From: "Andrew J. Hesford" Date: Tue, 12 Jan 2021 09:16:13 -0500 Subject: [PATCH] python3-hypercorn: update to 0.11.2. --- srcpkgs/python3-hypercorn/template | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/srcpkgs/python3-hypercorn/template b/srcpkgs/python3-hypercorn/template index e33dff0de1..9635ad9fe5 100644 --- a/srcpkgs/python3-hypercorn/template +++ b/srcpkgs/python3-hypercorn/template @@ -1,19 +1,28 @@ # Template file for 'python3-hypercorn' pkgname=python3-hypercorn -version=0.11.1 +version=0.11.2 revision=1 wrksrc="${pkgname#*-}-${version}" build_style=python3-module hostmakedepends="python3-setuptools" depends="python3-h11 python3-hyper-h2 python3-priority python3-toml python3-typing_extensions python3-wsproto" +checkdepends="python3-pytest-asyncio $depends" short_desc="Python ASGI server based on hyper and inspired by gunicorn" maintainer="Andrew J. Hesford " license="MIT" homepage="https://gitlab.com/pgjones/hypercorn" changelog="https://gitlab.com/pgjones/hypercorn/-/blob/master/CHANGELOG.rst" distfiles="${homepage}/-/archive/${version}/${pkgname#*-}-${version}.tar.gz" -checksum=ce54464ee775d99a5f4c4408f3b52bf31c43057f40543aff386b790ecdc764da +checksum=5030666663b3a048f971db9f728a76d4e0075a06e2a1fbed67b5c47cb11e7a5f + +do_check() { + vsed -i setup.cfg -e '/addopts/d' + # Ignored tests depend on packages not offered by Void + PYTHONPATH=src python3 -m pytest \ + --ignore-glob="tests/trio/*" \ + --ignore=tests/middleware/test_wsgi.py +} post_install() { vlicense LICENSE