Skip to contentSkip to conversation

python3-pytz: add recipe (from oe-core)

PATCH New Ross Burton 1 participant 1 message Oct 1

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 python3-pytz: add recipe (from oe-core)

This recipe is being removed from core as it is now deprecated and no longer needed with Python 3.9 onwards, which integrated the zoneinfo module.

All users of pytz in meta-python should be reviewed as the dependencies may be obsolete.

---
 .../ptest-packagelists-meta-python.inc        |  1 +
 .../python/python3-pytz_2026.4.bb             | 25 +++++++++++++++++++
 2 files changed, 26 insertions(+)
 create mode 100644 meta-python/recipes-devtools/python/python3-pytz_2026.4.bb
meta-python/conf/include/ptest-packagelists-meta-python.inc +1 -0
index 4435556b2c..92183897c7 100644
@@ -89,6 +89,7 @@ PTESTS_FAST_META_PYTHON = "\
     python3-pytest-picked \
     python3-pytest-sugar \
     python3-pytoml \
+    python3-pytz \
     python3-pyyaml-include \
     python3-pydbus \
     python3-pyzmq \
meta-python/recipes-devtools/python/python3-pytz_2026.4.bb new file +25 -0
new file mode 100644
index 0000000000..4a2eda07a6
@@ -0,0 +1,25 @@
+SUMMARY = "World timezone definitions, modern and historical"
+HOMEPAGE = "http://pythonhosted.org/pytz"
+LICENSE = "MIT"
+LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=1a67fc46c1b596cce5d21209bbe75999"
+
+inherit pypi setuptools3 ptest-python-pytest
+
+PTEST_PYTEST_DIR = "pytz/tests"
+
+SRC_URI[sha256sum] = "464303645bafafd72418898368b2429458f709cf1eb6a15372fbcc396b64da63"
+
+RDEPENDS:${PN}:class-target += "\
+    python3-datetime \
+    python3-doctest \
+    python3-io \
+    python3-pickle \
+    python3-pprint \
+    python3-threading \
+"
+
+BBCLASSEXTEND = "native nativesdk"
+
+do_install_ptest:append() {
+	cp -f ${S}/README.rst ${D}${PTEST_PATH}/
+}
Signature · 1 line
2.43.0