mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-11-26 07:46:39 +00:00
The new fold tests look up America/New_York and Asia/Tehran through zoneinfo; add python3-tzdata to the ptest RDEPENDS. Changes: - Fixed: preserve datetime fold in datetime conversions. AI-Generated: Uses Claude Code Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>
37 lines
944 B
BlitzBasic
37 lines
944 B
BlitzBasic
DESCRIPTION = "Jalali implementation of Python's datetime module"
|
|
HOMEPAGE = "https://github.com/slashmili/python-jalali"
|
|
LICENSE = "Python-2.0"
|
|
LIC_FILES_CHKSUM = "file://LICENSE;md5=c80be45b33471b4a23cf53d06a8172be"
|
|
|
|
# The PyPI package omits some files for testing like tests/__init__.py
|
|
# so use the GitHub source instead.
|
|
SRCREV = "417d87bfc229987ce86b61992ae6d211a35c8f70"
|
|
SRC_URI = " \
|
|
git://github.com/slashmili/jdatetime;branch=main;protocol=https;tag=v${PV} \
|
|
file://run-ptest \
|
|
"
|
|
|
|
inherit python_setuptools_build_meta ptest
|
|
|
|
CLEANBROKEN = "1"
|
|
|
|
RDEPENDS:${PN} += " \
|
|
python3-modules \
|
|
python3-jalali-core \
|
|
"
|
|
|
|
RDEPENDS:${PN}-ptest += " \
|
|
python3-pytest \
|
|
python3-core \
|
|
python3-pickle \
|
|
python3-unittest \
|
|
python3-tzdata \
|
|
python3-zoneinfo \
|
|
python3-unittest-automake-output \
|
|
"
|
|
|
|
do_install_ptest() {
|
|
install -d ${D}${PTEST_PATH}/tests
|
|
cp -rf ${S}/tests/* ${D}${PTEST_PATH}/tests/
|
|
}
|