From cf482d942289f4cb83b1fbe95e48d002ec875823 Mon Sep 17 00:00:00 2001 From: Tom Strausbaugh Date: Sun, 28 Apr 2024 10:12:13 -0400 Subject: [PATCH] New package: python3-trio-websocket-0.11.1 test Fix tab Fix Tab --- srcpkgs/python3-trio-websocket/template | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 srcpkgs/python3-trio-websocket/template diff --git a/srcpkgs/python3-trio-websocket/template b/srcpkgs/python3-trio-websocket/template new file mode 100644 index 00000000000..289d03ec5bc --- /dev/null +++ b/srcpkgs/python3-trio-websocket/template @@ -0,0 +1,25 @@ +# Template file for 'python3-trio-websocket' +pkgname=python3-trio-websocket +version=0.11.1 +revision=1 +build_style=python3-pep517 +hostmakedepends="python3-setuptools python3-wheel" +depends="python3-trio python3-wsproto" +checkdepends="$depends python3-pytest python3-pytest-trio iana-etc pylint python3-astroid + python3-async_generator python3-jedi python3-openssl python3-trustme" +short_desc="Library implementing server and client WebSocket protocol" +maintainer="Tom Strausbaugh " +license="Apache-2.0, MIT" +homepage="https://github.com/python-trio/trio-websocket" +changelog="https://raw.githubusercontent.com/python-trio/trio-websocket/master/CHANGELOG.md" +distfiles="${PYPI_SITE}/t/trio-websocket/trio-websocket-${version}.tar.gz" +checksum=18c11793647703c158b1f6e62de638acada927344d534e3c7628eedcb746839f +make_check_pre="env PY_IGNORE_IMPORTMISMATCH=1" + +pre_check() { + echo 'from pytest_trio.enable_trio_mode import *' > tests/conftest.py +} + +post_install() { + vlicense LICENSE +}