[packages/python3-trio-websocket] - new
qboosh
qboosh at pld-linux.org
Tue Jan 27 15:52:39 CET 2026
commit a2a4e7a8198a4c5a4807da5389c15760b83611df
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Tue Jan 27 15:52:43 2026 +0100
- new
python3-trio-websocket.spec | 80 +++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 80 insertions(+)
---
diff --git a/python3-trio-websocket.spec b/python3-trio-websocket.spec
new file mode 100644
index 0000000..13a9046
--- /dev/null
+++ b/python3-trio-websocket.spec
@@ -0,0 +1,80 @@
+#
+# Conditional build:
+%bcond_without tests # unit tests
+
+Summary: WebSocket library for Trio
+Summary(pl.UTF-8): Biblioteka WebSocket dla Trio
+Name: python3-trio-websocket
+Version: 0.12.2
+Release: 1
+License: MIT
+Group: Libraries/Python
+#Source0Download: https://pypi.org/simple/trio-websocket/
+Source0: https://files.pythonhosted.org/packages/source/t/trio-websocket/trio_websocket-%{version}.tar.gz
+# Source0-md5: d46fc1eddcd2b3bcb704d4cba65ad663
+URL: https://pypi.org/project/trio-websocket/
+BuildRequires: python3-modules >= 1:3.8
+BuildRequires: python3-setuptools
+%if %{with tests}
+BuildRequires: python3-attrs
+%if "%{_ver_lt %{py3_ver} 3.11}" == "1"
+BuildRequires: python3-exceptiongroup
+%endif
+BuildRequires: python3-outcome >= 1.2.0
+BuildRequires: python3-pytest
+BuildRequires: python3-pytest-trio
+BuildRequires: python3-trio >= 0.11
+BuildRequires: python3-trustme
+BuildRequires: python3-wsproto >= 0.14
+%endif
+BuildRequires: rpm-pythonprov
+BuildRequires: rpmbuild(macros) >= 1.714
+Requires: python3-modules >= 1:3.8
+BuildArch: noarch
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+This library implements both server and client aspects of the
+WebSocket protocol (<https://tools.ietf.org/html/rfc6455>)), striving
+for safety, correctness, and ergonomics. It is based on the wsproto
+project, which is a Sans-IO state machine that implements the majority
+of the WebSocket protocol, including framing, codecs, and events. This
+library handles I/O using the Trio framework. This library passes the
+Autobahn Test Suite
+(<https://github.com/crossbario/autobahn-testsuite>).
+
+%description -l pl.UTF-8
+Ta biblioteka implementuje aspekty serwerowe i klienckie protokołu
+WebSocket (<https://tools.ietf.org/html/rfc6455>)) z myślą o
+bezpieczeństwie, poprawności i ergonomii. Jest oparta na projekcie
+wsproto, który jest maszyną stanów bez we/wy (Sans-IO), implementującą
+większość protokołu WebSocket, w tym obsługę ramek, kodeków i zdarzeń.
+Ta biblioteka obsługuje we/wy przy użyciu szkieletu Trio. Przechodzi
+zestaw testów Autobahn
+(<https://github.com/crossbario/autobahn-testsuite>).
+
+%prep
+%setup -q -n trio_websocket-%{version}
+
+%build
+%py3_build
+
+%if %{with tests}
+PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 \
+PYTEST_PLUGINS=pytest_trio.plugin \
+%{__python3} -m pytest -o trio_mode=true tests
+%endif
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%py3_install
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc LICENSE README.md
+%{py3_sitescriptdir}/trio_websocket
+%{py3_sitescriptdir}/trio_websocket-%{version}-py*.egg-info
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/python3-trio-websocket.git/commitdiff/a2a4e7a8198a4c5a4807da5389c15760b83611df
More information about the pld-cvs-commit
mailing list