diff mbox series

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

Message ID 20261001112619.3271931-1-ross.burton@arm.com
State New
Headers show
Series python3-pytz: add recipe (from oe-core) | expand

Commit Message

Ross Burton Oct. 1, 2026, 11:26 a.m. UTC
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.

Signed-off-by: Ross Burton <ross.burton@arm.com>
---
 .../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
diff mbox series

Patch

diff --git a/meta-python/conf/include/ptest-packagelists-meta-python.inc b/meta-python/conf/include/ptest-packagelists-meta-python.inc
index 4435556b2c..92183897c7 100644
--- a/meta-python/conf/include/ptest-packagelists-meta-python.inc
+++ b/meta-python/conf/include/ptest-packagelists-meta-python.inc
@@ -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 \
diff --git a/meta-python/recipes-devtools/python/python3-pytz_2026.4.bb b/meta-python/recipes-devtools/python/python3-pytz_2026.4.bb
new file mode 100644
index 0000000000..4a2eda07a6
--- /dev/null
+++ b/meta-python/recipes-devtools/python/python3-pytz_2026.4.bb
@@ -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}/
+}