[packages/python3-sphinx-jinja2-compat] relax imghdr dep; rel 2

atler atler at pld-linux.org
Mon Apr 21 13:54:42 CEST 2025


commit 2b4004e601786ceea4cdaaebbf71e1bf44304cdf
Author: Jan Palus <atler at pld-linux.org>
Date:   Mon Apr 21 13:05:01 2025 +0200

    relax imghdr dep; rel 2

 deps.patch                        | 11 +++++++++++
 python3-sphinx-jinja2-compat.spec |  4 +++-
 2 files changed, 14 insertions(+), 1 deletion(-)
---
diff --git a/python3-sphinx-jinja2-compat.spec b/python3-sphinx-jinja2-compat.spec
index e64329b..119685c 100644
--- a/python3-sphinx-jinja2-compat.spec
+++ b/python3-sphinx-jinja2-compat.spec
@@ -1,12 +1,13 @@
 Summary:	Patches Jinja2 v3 to restore compatibility with earlier Sphinx versions
 Name:		python3-sphinx-jinja2-compat
 Version:	0.3.0
-Release:	1
+Release:	2
 License:	MIT
 Group:		Libraries/Python
 #Source0Download: https://pypi.org/simple/sphinx-jinja2-compat/
 Source0:	https://files.pythonhosted.org/packages/source/s/sphinx_jinja2_compat/sphinx_jinja2_compat-%{version}.tar.gz
 # Source0-md5:	7834135e0a6eb6b3e8db7b8ef38cca10
+Patch0:		deps.patch
 URL:		https://github.com/sphinx-toolbox/sphinx-jinja2-compat
 BuildRequires:	python3 >= 1:3.6
 BuildRequires:	python3-build
@@ -25,6 +26,7 @@ versions.
 
 %prep
 %setup -q -n sphinx_jinja2_compat-%{version}
+%patch -P0 -p1
 
 %build
 %py3_build_pyproject
diff --git a/deps.patch b/deps.patch
new file mode 100644
index 0000000..6217e98
--- /dev/null
+++ b/deps.patch
@@ -0,0 +1,11 @@
+--- sphinx_jinja2_compat-0.3.0/pyproject.toml.orig	2024-06-19 12:26:52.682657700 +0200
++++ sphinx_jinja2_compat-0.3.0/pyproject.toml	2025-04-21 13:02:34.722426276 +0200
+@@ -10,7 +10,7 @@
+ requires-python = ">=3.6"
+ keywords = [ "documentation", "jinja2", "sphinx",]
+ dynamic = []
+-dependencies = [ "jinja2>=2.10", "markupsafe>=1", 'standard-imghdr==3.10.14; python_version >= "3.13"',]
++dependencies = [ "jinja2>=2.10", "markupsafe>=1", 'standard-imghdr; python_version >= "3.13"',]
+ classifiers = [
+     "Development Status :: 3 - Alpha",
+     "Intended Audience :: Developers",
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python3-sphinx-jinja2-compat.git/commitdiff/2b4004e601786ceea4cdaaebbf71e1bf44304cdf



More information about the pld-cvs-commit mailing list