python-dns: bump to 2.8.0
authorAlexandru Ardelean <redacted>
Sat, 4 Apr 2026 17:34:52 +0000 (20:34 +0300)
committerAlexandru Ardelean <redacted>
Thu, 9 Apr 2026 05:00:48 +0000 (08:00 +0300)
Changelog: https://github.com/rthalley/dnspython/blob/master/CHANGELOG.rst

Multiple minor releases since 2.4.1 adding new record types,
improved DNSSEC support, and bug fixes.
Add test.sh to verify DNS name parsing and rdatatype lookups.

Signed-off-by: Alexandru Ardelean <redacted>
lang/python/python-dns/Makefile
lang/python/python-dns/test.sh [new file with mode: 0755]

index 03fbffee67a0972eb44f41c0b6d30e4026f3a5d2..5ac612fd9427252683e47ae35b11e1453500fbbe 100644 (file)
@@ -8,17 +8,17 @@
 include $(TOPDIR)/rules.mk
 
 PKG_NAME:=python-dns
-PKG_VERSION:=2.4.1
+PKG_VERSION:=2.8.0
 PKG_RELEASE:=1
 
 PYPI_NAME:=dnspython
-PKG_HASH:=c33971c79af5be968bb897e95c2448e11a645ee84d93b265ce0b7aabe5dfdca8
+PKG_HASH:=181d3c6996452cb1189c4046c61599b84a5a86e099562ffde77d26984ff26d0f
 
 PKG_LICENSE:=ISC
 PKG_LICENSE_FILES:=LICENSE
 PKG_MAINTAINER:=Josef Schlehofer <pepe.schlehofer@gmail.com>
 
-PKG_BUILD_DEPENDS:=python-poetry-core/host
+PKG_BUILD_DEPENDS:=python-hatchling/host
 
 include ../pypi.mk
 include $(INCLUDE_DIR)/package.mk
diff --git a/lang/python/python-dns/test.sh b/lang/python/python-dns/test.sh
new file mode 100755 (executable)
index 0000000..413fa99
--- /dev/null
@@ -0,0 +1,22 @@
+#!/bin/sh
+[ "$1" = python3-dns ] || exit 0
+python3 - << 'EOF'
+import dns
+import dns.name
+import dns.rdatatype
+import dns.rdata
+import dns.rdataset
+import dns.message
+import dns.resolver
+
+n = dns.name.from_text("www.example.com.")
+assert str(n) == "www.example.com.", f"unexpected name: {n}"
+assert n.is_absolute()
+
+parent = dns.name.from_text("example.com.")
+assert n.is_subdomain(parent)
+
+rdtype = dns.rdatatype.from_text("A")
+assert rdtype == dns.rdatatype.A
+assert dns.rdatatype.to_text(rdtype) == "A"
+EOF
git clone https://git.99rst.org/PROJECT