]> git.99rst.org Git - openwrt-packages.git/commitdiff
vobject: add missing pytz and six dependencies
authorAlexandru Ardelean <redacted>
Sat, 18 Jul 2026 16:29:25 +0000 (19:29 +0300)
committerAlexandru Ardelean <redacted>
Wed, 22 Jul 2026 06:31:42 +0000 (09:31 +0300)
vobject 0.9.9 lists both pytz and six as unconditional runtime requirements
in install_requires, but neither was in DEPENDS. Running the change_tz
console script failed with "ModuleNotFoundError: No module named 'pytz'".

six happened to resolve transitively through python3-dateutil even though
vobject/base.py imports it directly, so list it explicitly rather than rely
on another package's dependency.

Extend test.sh to check that both modules import and that vobject.change_tz
loads.

Fixes: https://github.com/openwrt/packages/issues/29992
Signed-off-by: Alexandru Ardelean <redacted>
lang/python/vobject/Makefile
lang/python/vobject/test.sh

index 89949b7ca8dac24c0656b4a4ad977ff57afbbf71..79d651924e30eceeeb79b3abf2b4ef8b3b6c341f 100644 (file)
@@ -5,7 +5,7 @@ include $(TOPDIR)/rules.mk
 
 PKG_NAME:=vobject
 PKG_VERSION:=0.9.9
-PKG_RELEASE:=1
+PKG_RELEASE:=2
 PKG_LICENSE:=Apache-2.0
 
 PYPI_NAME:=$(PKG_NAME)
@@ -23,7 +23,7 @@ define Package/python3-vobject
   CATEGORY:=Languages
   TITLE:=VObject
   URL:=https://py-vobject.github.io/
-  DEPENDS:=+python3 +python3-dateutil
+  DEPENDS:=+python3 +python3-dateutil +python3-pytz +python3-six
 endef
 
 define Package/python3-vobject/description
index 8309b1b53c3b2b7996d539ecd4377ff39fb41300..91eb4c50dd8000d313fbd60bb208786584743dd0 100644 (file)
@@ -5,6 +5,12 @@
 python3 - << 'EOF'
 import vobject
 
+# Upstream declares pytz and six as hard runtime requirements, so make sure
+# both resolve; a missing pytz is what broke the change_tz console script.
+import pytz
+import six
+from dateutil import tz
+
 # Parse a simple vCard
 vcard_text = """BEGIN:VCARD
 VERSION:3.0
@@ -32,5 +38,8 @@ events = list(cal.vevent_list)
 assert len(events) == 1
 assert events[0].summary.value == "Test Event"
 
+# Verify change_tz imports (requires pytz)
+from vobject.change_tz import change_tz
+
 print("python3-vobject OK")
 EOF
git clone https://git.99rst.org/PROJECT