[packages/python3-aiohttp-jinja2] - new

qboosh qboosh at pld-linux.org
Sat Jan 17 11:48:42 CET 2026


commit 74eb5b0a50b59ed70d17caf79233f39f62b01c46
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Sat Jan 17 11:48:28 2026 +0100

    - new

 aiohttp-jinja2-intersphinx.patch | 13 ++++++
 python3-aiohttp-jinja2.spec      | 91 ++++++++++++++++++++++++++++++++++++++++
 2 files changed, 104 insertions(+)
---
diff --git a/python3-aiohttp-jinja2.spec b/python3-aiohttp-jinja2.spec
new file mode 100644
index 0000000..cb26027
--- /dev/null
+++ b/python3-aiohttp-jinja2.spec
@@ -0,0 +1,91 @@
+#
+# Conditional build:
+%bcond_without	doc	# API documentation
+%bcond_without	tests	# unit tests
+
+Summary:	Jinja2 template renderer for aiohttp.web
+Summary(pl.UTF-8):	Renderowanie szablonów Jinja2 dla aiohttp.web
+Name:		python3-aiohttp-jinja2
+Version:	1.6
+Release:	1
+License:	Apache v2.0
+Group:		Libraries/Python
+#Source0Download: https://pypi.org/simple/aiohttp-jinja2/
+Source0:	https://files.pythonhosted.org/packages/source/a/aiohttp-jinja2/aiohttp-jinja2-%{version}.tar.gz
+# Source0-md5:	a71dfafdb279d067956f95719b12cb9a
+Patch0:		aiohttp-jinja2-intersphinx.patch
+URL:		https://pypi.org/project/aiohttp-jinja2/
+BuildRequires:	python3-modules >= 1:3.8
+BuildRequires:	python3-setuptools
+%if %{with tests}
+BuildRequires:	python3-aiohttp >= 3.9.0
+BuildRequires:	python3-jinja2 >= 3.0.0
+BuildRequires:	python3-pytest
+BuildRequires:	python3-pytest-aiohttp
+BuildRequires:	python3-pytest-asyncio
+BuildRequires:	python3-pytest-cov
+%endif
+BuildRequires:	rpm-pythonprov
+BuildRequires:	rpmbuild(macros) >= 1.714
+%if %{with doc}
+BuildRequires:	sphinx-pdg-3 >= 7.2.6
+%endif
+Requires:	python3-modules >= 1:3.8
+BuildArch:	noarch
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+Jinja2 template renderer for aiohttp.web (HTTP server for asyncio).
+
+%description -l pl.UTF-8
+Renderowanie szablonów Jinja2 dla aiohttp.web (serwera HTTP dla
+asyncio).
+
+%package apidocs
+Summary:	API documentation for Python aiohttp-jinja2 module
+Summary(pl.UTF-8):	Dokumentacja API modułu Pythona aiohttp-jinja2
+Group:		Documentation
+
+%description apidocs
+API documentation for Python aiohttp-jinja2 module.
+
+%description apidocs -l pl.UTF-8
+Dokumentacja API modułu Pythona aiohttp-jinja2.
+
+%prep
+%setup -q -n aiohttp-jinja2-%{version}
+%patch -P0 -p1
+
+%build
+%py3_build
+
+%if %{with tests}
+PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 \
+PYTEST_PLUGINS=pytest_asyncio.plugin,pytest_aiohttp.plugin,pytest_cov.plugin \
+%{__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
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc CHANGES.rst README.rst
+%{py3_sitescriptdir}/aiohttp_jinja2
+%{py3_sitescriptdir}/aiohttp_jinja2-%{version}-py*.egg-info
+
+%if %{with doc}
+%files apidocs
+%defattr(644,root,root,755)
+%doc docs/_build/html/{_modules,_static,*.html,*.js}
+%endif
diff --git a/aiohttp-jinja2-intersphinx.patch b/aiohttp-jinja2-intersphinx.patch
new file mode 100644
index 0000000..83beb3d
--- /dev/null
+++ b/aiohttp-jinja2-intersphinx.patch
@@ -0,0 +1,13 @@
+--- aiohttp-jinja2-1.6/docs/conf.py.orig	2023-11-18 16:30:30.000000000 +0100
++++ aiohttp-jinja2-1.6/docs/conf.py	2026-01-17 11:26:44.874968873 +0100
+@@ -320,7 +320,7 @@ texinfo_documents = [
+ 
+ # Example configuration for intersphinx: refer to the Python standard library.
+ intersphinx_mapping = {
+-    "http://docs.python.org/3": None,
+-    "https://aiohttp.readthedocs.io/en/stable": None,
+-    "https://jinja.palletsprojects.com/en/latest": None,
++    "python": ("http://docs.python.org/3", None),
++    "aiohttp": ("https://aiohttp.readthedocs.io/en/stable", None),
++    "jinja": ("https://jinja.palletsprojects.com/en/latest", None),
+ }
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python3-aiohttp-jinja2.git/commitdiff/74eb5b0a50b59ed70d17caf79233f39f62b01c46



More information about the pld-cvs-commit mailing list