[packages/python3-wsproto] - new

qboosh qboosh at pld-linux.org
Wed Jan 14 05:47:30 CET 2026


commit 368e9977de1a3e755ec26a34c39ef46dd03e58f8
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Wed Jan 14 05:47:22 2026 +0100

    - new

 python3-wsproto.spec | 114 +++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 114 insertions(+)
---
diff --git a/python3-wsproto.spec b/python3-wsproto.spec
new file mode 100644
index 0000000..7b198a8
--- /dev/null
+++ b/python3-wsproto.spec
@@ -0,0 +1,114 @@
+#
+# Conditional build:
+%bcond_without	doc	# API documentation
+%bcond_without	tests	# unit tests
+
+Summary:	Pure-Python WebSocket protocol implementation
+Summary(pl.UTF-8):	Implementacja protokołu WebSocket w czystym Pythonie
+Name:		python3-wsproto
+Version:	1.3.2
+Release:	1
+License:	MIT
+Group:		Libraries/Python
+#Source0Download: https://pypi.org/simple/wsproto/
+Source0:	https://files.pythonhosted.org/packages/source/w/wsproto/wsproto-%{version}.tar.gz
+# Source0-md5:	b6374a15a82ca55b23cecc31a489deee
+URL:		https://pypi.org/project/wsproto/
+BuildRequires:	python3-build >= 1.3.0
+BuildRequires:	python3-installer
+BuildRequires:	python3-modules >= 1:3.10
+BuildRequires:	python3-setuptools >= 1:77
+%if %{with tests}
+BuildRequires:	python3-h11 >= 0.16.0
+BuildRequires:	python3-h11 < 1
+BuildRequires:	python3-hypothesis >= 6.119.4
+BuildRequires:	python3-pytest >= 8.3.3
+BuildRequires:	python3-pytest-cov >= 6.0.0
+BuildRequires:	python3-pytest-xdist >= 3.6.1
+%endif
+BuildRequires:	rpm-pythonprov
+BuildRequires:	rpmbuild(macros) >= 2.044
+%if %{with doc}
+BuildRequires:	sphinx-pdg-3 >= 8.2.3
+%endif
+Requires:	python3-modules >= 1:3.10
+BuildArch:	noarch
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+This package contains a pure-Python implementation of a WebSocket
+protocol stack. It's written from the ground up to be embeddable in
+whatever program you choose to use, ensuring that you can communicate
+via WebSockets, as defined in RFC 6455, regardless of your programming
+paradigm.
+
+This package does not provide a parsing layer, a network layer, or any
+rules about concurrency. Instead, it's a purely in-memory solution,
+defined in terms of data actions and WebSocket frames. RFC 6455 and
+Compression Extensions for WebSocket via RFC 7692 are fully supported.
+
+%description -l pl.UTF-8
+Ten pakiet zawiera implementację stosu protokołu WebSocket w czystym
+Pythonie. Jest napisana od podstaw, jako pozwalająca się osadzić w
+dowolnym programie, zapewniając możliwość komunikacji poprzez
+WebSockets zgodnie z RFC 6455, niezależnie od stosowanych paradygmatów
+programowania.
+
+Ten pakiet nie zapewnia warstwy analizy ani sieciowej, ani żadnych
+zasad współbieżności. Jest to rozwiązanie działające w całości w
+pamięci, zgodnie z warunkami akcji danych i ramek WebSocket. W pełni
+obsługiwane są RFC 6455 oraz rozszerzenia kompresji dla WebSocket wg
+RFC 7692.
+
+%package apidocs
+Summary:	API documentation for Python wsproto module
+Summary(pl.UTF-8):	Dokumentacja API modułu Pythona wsproto
+Group:		Documentation
+
+%description apidocs
+API documentation for Python wsproto module.
+
+%description apidocs -l pl.UTF-8
+Dokumentacja API modułu Pythona wsproto.
+
+%prep
+%setup -q -n wsproto-%{version}
+
+%build
+%py3_build_pyproject
+
+%if %{with tests}
+PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 \
+PYTHONPATH=$(pwd)/src \
+%{__python3} -m pytest tests
+%endif
+
+%if %{with doc}
+PYTHONPATH=$(pwd)/src \
+%{__make} -C docs html \
+	SPHINXBUILD=sphinx-build-3
+%endif
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%py3_install_pyproject
+
+install -d $RPM_BUILD_ROOT%{_examplesdir}/python3-wsproto-%{version}
+cp -p example/*.py $RPM_BUILD_ROOT%{_examplesdir}/python3-wsproto-%{version}
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc CHANGELOG.rst LICENSE README.rst
+%{py3_sitescriptdir}/wsproto
+%{py3_sitescriptdir}/wsproto-%{version}.dist-info
+%{_examplesdir}/%{name}-%{version}
+
+%if %{with doc}
+%files apidocs
+%defattr(644,root,root,755)
+%doc docs/build/html/{_modules,_static,*.html,*.js}
+%endif
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python3-wsproto.git/commitdiff/368e9977de1a3e755ec26a34c39ef46dd03e58f8



More information about the pld-cvs-commit mailing list