[packages/python3-hypercorn] - new
qboosh
qboosh at pld-linux.org
Thu Jan 15 06:24:20 CET 2026
commit bab6a62f1627290a0b7e252193cce2d6666c3ebf
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Thu Jan 15 06:24:13 2026 +0100
- new
python3-hypercorn.spec | 113 +++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 113 insertions(+)
---
diff --git a/python3-hypercorn.spec b/python3-hypercorn.spec
new file mode 100644
index 0000000..6bd7f84
--- /dev/null
+++ b/python3-hypercorn.spec
@@ -0,0 +1,113 @@
+#
+# Conditional build:
+%bcond_with doc # API documentation (not in sdist)
+%bcond_without tests # unit tests
+
+Summary: ASGI Server based on Hyper libraries and inspired by Gunicorn
+Summary(pl.UTF-8): Serwer ASGI oparty na bibliotekach Hyper, inspirowany Gunicornem
+Name: python3-hypercorn
+Version: 0.18.0
+Release: 1
+License: MIT
+Group: Libraries/Python
+#Source0Download: https://pypi.org/simple/hypercorn/
+Source0: https://files.pythonhosted.org/packages/source/h/hypercorn/hypercorn-%{version}.tar.gz
+# Source0-md5: 607e5dcd270c47a886770ce906831406
+URL: https://pypi.org/project/Hypercorn/
+BuildRequires: python3-build
+BuildRequires: python3-installer
+BuildRequires: python3-modules >= 1:3.10
+BuildRequires: python3-pdm-backend
+%if %{with tests}
+BuildRequires: python3-h11
+BuildRequires: python3-h2 >= 4.3.0
+BuildRequires: python3-httpx
+BuildRequires: python3-hypothesis
+BuildRequires: python3-priority
+BuildRequires: python3-pytest
+BuildRequires: python3-pytest-asyncio
+BuildRequires: python3-pytest-cov
+BuildRequires: python3-pytest-trio
+BuildRequires: python3-trio
+BuildRequires: python3-wsproto >= 0.14.0
+%if "%{py3_ver}" == "3.10"
+BuildRequires: python3-exceptiongroup
+BuildRequires: python3-taskgroup
+BuildRequires: python3-tomli
+BuildRequires: python3-typing_extensions
+%endif
+%endif
+BuildRequires: rpm-pythonprov
+BuildRequires: rpmbuild(macros) >= 2.044
+%if %{with doc}
+BuildRequires: python3-pydata_sphinx_theme
+BuildRequires: python3-sphinxcontrib-mermaid
+BuildRequires: sphinx-pdg-3
+%endif
+Requires: python3-modules >= 1:3.10
+BuildArch: noarch
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+Hypercorn is an ASGI and WSGI web server based on the sans-io hyper,
+h11, h2, and wsproto libraries and inspired by Gunicorn. Hypercorn
+supports HTTP/1, HTTP/2, WebSockets (over HTTP/1 and HTTP/2), ASGI,
+and WSGI specifications. Hypercorn can utilise asyncio, uvloop, or
+trio worker types.
+
+%description -l pl.UTF-8
+Hypercorn to serwer WWW ASGI i WSGI oparty na bibliotekach bez we/wy
+hyper, h11, h2 i wsproto, zainspirowany Gunicornem. Hypercorn
+obsługuje specyfikacje HTTP/1, HTTP/2, WebSockets (po HTTP/1 i
+HTTP/2), ASGI i WSGI. Potrafi wykorzystywać typy workerów asyncio,
+uvloop lub trio.
+
+%package apidocs
+Summary: API documentation for Python hypercorn module
+Summary(pl.UTF-8): Dokumentacja API modułu Pythona hypercorn
+Group: Documentation
+
+%description apidocs
+API documentation for Python hypercorn module.
+
+%description apidocs -l pl.UTF-8
+Dokumentacja API modułu Pythona hypercorn.
+
+%prep
+%setup -q -n hypercorn-%{version}
+
+%build
+%py3_build_pyproject
+
+%if %{with tests}
+PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 \
+PYTEST_PLUGINS=pytest_asyncio.plugin,pytest_cov.plugin,pytest_trio.plugin \
+PYTHONPATH=$(pwd)/src \
+%{__python3} -m pytest tests
+%endif
+
+%if %{with doc}
+%{__make} -C docs html \
+ SPHINXBUILD=sphinx-build-3
+%endif
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%py3_install_pyproject
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc LICENSE README.rst
+%attr(755,root,root) %{_bindir}/hypercorn
+%{py3_sitescriptdir}/hypercorn
+%{py3_sitescriptdir}/hypercorn-%{version}.dist-info
+
+%if %{with doc}
+%files apidocs
+%defattr(644,root,root,755)
+%doc docs/_build/html/*
+%endif
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/python3-hypercorn.git/commitdiff/bab6a62f1627290a0b7e252193cce2d6666c3ebf
More information about the pld-cvs-commit
mailing list