diff options
| author | Khem Raj <raj.khem@gmail.com> | 2025-04-19 00:17:45 -0700 |
|---|---|---|
| committer | Khem Raj <raj.khem@gmail.com> | 2025-04-19 14:36:08 -0700 |
| commit | 055fc16cdade530fe821f856ded9faa2d95fd101 (patch) | |
| tree | 9b13a1e9786319e494ffe53d0e6496e371297d56 /meta-python/recipes-devtools/python/python3-pydantic-core_2.34.1.bb | |
| parent | 9cf14c34c09c1f930bec586e56ffc54ca57c3252 (diff) | |
| download | meta-openembedded-055fc16cdade530fe821f856ded9faa2d95fd101.tar.gz | |
python3-pydantic-core: Upgrade to 2.34.1
Fix RISCV-32 builds while here
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta-python/recipes-devtools/python/python3-pydantic-core_2.34.1.bb')
| -rw-r--r-- | meta-python/recipes-devtools/python/python3-pydantic-core_2.34.1.bb | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/meta-python/recipes-devtools/python/python3-pydantic-core_2.34.1.bb b/meta-python/recipes-devtools/python/python3-pydantic-core_2.34.1.bb new file mode 100644 index 0000000000..0e2d065128 --- /dev/null +++ b/meta-python/recipes-devtools/python/python3-pydantic-core_2.34.1.bb | |||
| @@ -0,0 +1,50 @@ | |||
| 1 | SUMMARY = "Provides the core functionality for pydantic validation and serialization." | ||
| 2 | DESCRIPTION = "This package provides the core functionality for \ | ||
| 3 | pydantic validation and serialization.\ | ||
| 4 | \ | ||
| 5 | Pydantic-core is currently around 17x faster than pydantic V1." | ||
| 6 | HOMEPAGE = "https://github.com/pydantic/pydantic-core" | ||
| 7 | |||
| 8 | LICENSE = "MIT" | ||
| 9 | LIC_FILES_CHKSUM = "file://LICENSE;md5=ab599c188b4a314d2856b3a55030c75c" | ||
| 10 | |||
| 11 | require ${BPN}-crates.inc | ||
| 12 | |||
| 13 | SRC_URI += "file://0001-Upgrade-radium-to-1.0.patch;patchdir=${UNPACKDIR}/cargo_home/bitbake/bitvec-1.0.1/" | ||
| 14 | SRC_URI += "file://0001-cargo.toml-Update-bitvec-to-use-radium-1.x.patch" | ||
| 15 | SRC_URI[sha256sum] = "6bf31628ab6d0e7c7c0372419898c52ef0a447b33ab47c7f62053bd013cc5b09" | ||
| 16 | |||
| 17 | DEPENDS = "python3-maturin-native python3-typing-extensions" | ||
| 18 | |||
| 19 | inherit pypi cargo-update-recipe-crates python_maturin ptest-python-pytest | ||
| 20 | |||
| 21 | PYPI_PACKAGE = "pydantic_core" | ||
| 22 | UPSTREAM_CHECK_PYPI_PACKAGE = "${PYPI_PACKAGE}" | ||
| 23 | |||
| 24 | RDEPENDS:${PN} += " \ | ||
| 25 | python3-compression \ | ||
| 26 | python3-typing-extensions \ | ||
| 27 | " | ||
| 28 | |||
| 29 | INSANE_SKIP:${PN} = "already-stripped" | ||
| 30 | |||
| 31 | # python3-misc is for Lib/timeit.py which is not split out elsewhere | ||
| 32 | RDEPENDS:${PN}-ptest += "\ | ||
| 33 | python3-dateutil \ | ||
| 34 | python3-dirty-equals \ | ||
| 35 | python3-hypothesis \ | ||
| 36 | python3-inline-snapshot \ | ||
| 37 | python3-misc \ | ||
| 38 | python3-pytest-mock \ | ||
| 39 | python3-pytest-timeout \ | ||
| 40 | python3-pytest-benchmark \ | ||
| 41 | python3-tzdata \ | ||
| 42 | python3-zoneinfo \ | ||
| 43 | " | ||
| 44 | |||
| 45 | do_install_ptest:append () { | ||
| 46 | cp -rf ${S}/tests/ ${D}${PTEST_PATH}/ | ||
| 47 | sed -i -e "/--automake/ s/$/ -k 'not test_model_class_root_validator_wrap and not test_model_class_root_validator_before and not test_model_class_root_validator_after'/" ${D}${PTEST_PATH}/run-ptest | ||
| 48 | } | ||
| 49 | |||
| 50 | BBCLASSEXTEND = "native nativesdk" | ||
