meta-openembedded/meta-python/recipes-devtools/python/python3-marshmallow_3.23.1.bb
Khem Raj 68a9cb020c
python3-marshmallow: Add missing rdep on tzdata module
Fixes

{'python3-marshmallow': 'START: ptest-runner\n'
                        '2024-11-22T04:11\n'
                        'ImportError while loading conftest '
                        "'/usr/lib/python3-marshmallow/ptest/tests/conftest.py'.\n"
                        'tests/conftest.py:5: in <module>\n'
                        '    from tests.base import Blog, User, UserSchema\n'
                        'tests/base.py:14: in <module>\n'
                        '    central = ZoneInfo("America/Chicago")\n'
                        '../../python3.13/zoneinfo/_common.py:24: in '
                        'load_tzdata\n'
                        '    raise ZoneInfoNotFoundError(f"No time zone found '
                        'with key {key}")\n'
                        "E   zoneinfo._common.ZoneInfoNotFoundError: 'No time "
                        "zone found with key America/Chicago'\n"
                        '\n'
                        'ERROR: Exit status is 4\n'
                        'DURATION: 1\n'}

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2024-11-21 21:42:38 -08:00

41 lines
1.2 KiB
BlitzBasic

SUMMARY = "Simplified object serialization in python"
DESCRIPTION = "Marshmallow is an ORM/ODM/framework-agnostic library for converting complex datatypes, such as objects, to and from native Python datatypes."
HOMEPAGE = "https://github.com/marshmallow-code/marshmallow"
LICENSE = "MIT"
LIC_FILES_CHKSUM = "\
file://LICENSE;md5=27586b20700d7544c06933afe56f7df4 \
file://docs/license.rst;md5=13da439ad060419fb7cf364523017cfb"
SRC_URI[sha256sum] = "3a8dfda6edd8dcdbf216c0ede1d1e78d230a6dc9c5a088f58c4083b974a0d468"
inherit python_flit_core pypi ptest
SRC_URI += " \
file://run-ptest \
"
RDEPENDS:${PN}-ptest += " \
python3-pytest \
python3-pytz \
python3-simplejson \
python3-unittest-automake-output \
python3-zoneinfo \
python3-tzdata \
"
do_install_ptest() {
install -d ${D}${PTEST_PATH}/tests
rm -rf ${S}/tests/mypy_test_cases
cp -rf ${S}/tests/* ${D}${PTEST_PATH}/tests/
}
RDEPENDS:${PN} += " \
python3-compression \
python3-datetime \
python3-email \
python3-json \
python3-numbers \
python3-pprint \
python3-packaging \
"