[packages/python3-dns] Up to 2.9.2

arekm arekm at pld-linux.org
Wed Nov 11 01:54:44 CET 2026


commit 940f9dc01aa349ba6966e862294c7402597aeaba
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date:   Wed Nov 11 01:51:00 2026 +0100

    Up to 2.9.2
    
    Fixes CVE-2026-114605.

 dnspython-tests-feature-gates.patch | 68 +++++++++++++++++++++++++++++++++++++
 python3-dns.spec                    | 25 ++++++++------
 2 files changed, 82 insertions(+), 11 deletions(-)
---
diff --git a/python3-dns.spec b/python3-dns.spec
index df9c287..c8939ca 100644
--- a/python3-dns.spec
+++ b/python3-dns.spec
@@ -6,29 +6,31 @@
 Summary:	dnspython - a DNS toolkit for Python 3
 Summary(pl.UTF-8):	dnspython - zestaw narzędzi do DNS dla Pythona 3
 Name:		python3-%{module}
-Version:	2.8.0
+Version:	2.9.2
 Release:	1
-License:	MIT
+License:	ISC
 Group:		Development/Languages/Python
 Source0:	https://files.pythonhosted.org/packages/source/d/dnspython/dnspython-%{version}.tar.gz
-# Source0-md5:	5f2ceb19b1c269f9e1ccef8bf2a1e8c5
+# Source0-md5:	7b46ef88a095ea615709c6bbb62c34e3
+Patch0:		dnspython-tests-feature-gates.patch
 URL:		https://www.dnspython.org/
 BuildRequires:	python3-build
-BuildRequires:	python3-devel >= 1:3.9
-BuildRequires:	python3-hatchling >= 1.21.0
+BuildRequires:	python3-devel >= 1:3.11
 BuildRequires:	python3-installer
+BuildRequires:	python3-uv-build >= 0.9.21
+BuildRequires:	python3-uv-build < 0.14
 %if %{with tests}
-BuildRequires:	python3-cryptography >= 43
-BuildRequires:	python3-idna >= 3.7
+BuildRequires:	python3-cryptography >= 50
+BuildRequires:	python3-idna >= 3.20
 BuildRequires:	python3-pytest >= 7.4
-# doh: httpcore >= 1.0.0, httpx >= 0.26.0, h2 >= 4.1.0
-# doq: aioquic >= 1.0.0
-# trio: trio >= 0.23
+# doh: httpcore2 >= 2.13, httpx2 >= 2.13, h2 >= 4.4
+# doq: aioquic >= 1.3.0
+# trio: trio >= 0.34
 # wmi: wmi >= 1.5.1
 %endif
 BuildRequires:	rpmbuild(macros) >= 2.044
 BuildRequires:	rpm-pythonprov
-Requires:	python3-modules >= 1:3.9
+Requires:	python3-modules >= 1:3.11
 BuildArch:	noarch
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
@@ -56,6 +58,7 @@ komunikatach, nazwach i rekordach w DNS-ie.
 
 %prep
 %setup -q -n dnspython-%{version}
+%patch -P0 -p1
 
 %build
 %py3_build_pyproject
diff --git a/dnspython-tests-feature-gates.patch b/dnspython-tests-feature-gates.patch
new file mode 100644
index 0000000..5f8923d
--- /dev/null
+++ b/dnspython-tests-feature-gates.patch
@@ -0,0 +1,68 @@
+# tests treat trio and DoH/DoQ as available when they import, while dnspython
+# itself requires newer versions (dns._features); gate on dnspython's own checks
+--- a/tests/test_async.py
++++ b/tests/test_async.py
+@@ -727,6 +727,8 @@
+     import sniffio
+     import trio
+ 
++    import dns._trio_backend  # ImportError when trio is missing or too old
++
+     class TrioAsyncDetectionTests(AsyncDetectionTests):
+         sniff_result = "trio"
+ 
+--- a/tests/test_tsig_doh_doq.py
++++ b/tests/test_tsig_doh_doq.py
+@@ -18,6 +18,7 @@
+ import dns.exception
+ import dns.message
+ import dns.query
++import dns.quic
+ import dns.tsigkeyring
+ 
+ from .util import here
+@@ -34,6 +35,10 @@
+     class Server:  # type: ignore
+         pass
+ 
++# the test server may support a transport that the dnspython client lacks
++have_doh = have_doh and dns.query._have_httpx2
++have_doq = have_doq and dns.quic.have_quic
++
+ 
+ keyring = dns.tsigkeyring.from_text({"name": "tDz6cfXXGtNivRpQ98hr6A=="})
+ ca = here("tls/ca.crt")
+--- a/tests/test_xfr.py
++++ b/tests/test_xfr.py
+@@ -760,6 +760,7 @@
+ #
+ 
+ try:
++    import dns._trio_backend  # ImportError when trio is missing or too old
+     import trio
+ 
+     @pytest.mark.skipif(not _nanonameserver_available, reason="requires nanonameserver")
+@@ -959,6 +960,7 @@
+ 
+ 
+ try:
++    import dns._trio_backend  # ImportError when trio is missing or too old
+     import trio
+ 
+     @pytest.mark.skipif(not _nanonameserver_available, reason="requires nanonameserver")
+@@ -1058,6 +1060,7 @@
+ 
+ 
+ try:
++    import dns._trio_backend  # ImportError when trio is missing or too old
+     import trio
+ 
+     @pytest.mark.skipif(not _nanonameserver_available, reason="requires nanonameserver")
+@@ -1143,6 +1146,7 @@
+ 
+ 
+ try:
++    import dns._trio_backend  # ImportError when trio is missing or too old
+     import trio
+ 
+     @pytest.mark.skipif(not _nanonameserver_available, reason="requires nanonameserver")
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python3-dns.git/commitdiff/940f9dc01aa349ba6966e862294c7402597aeaba



More information about the pld-cvs-commit mailing list