summaryrefslogtreecommitdiffstats
path: root/meta-python/recipes-devtools/python/python3-pydantic-core_2.34.1.bb
diff options
context:
space:
mode:
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.bb50
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 @@
1SUMMARY = "Provides the core functionality for pydantic validation and serialization."
2DESCRIPTION = "This package provides the core functionality for \
3pydantic validation and serialization.\
4\
5Pydantic-core is currently around 17x faster than pydantic V1."
6HOMEPAGE = "https://github.com/pydantic/pydantic-core"
7
8LICENSE = "MIT"
9LIC_FILES_CHKSUM = "file://LICENSE;md5=ab599c188b4a314d2856b3a55030c75c"
10
11require ${BPN}-crates.inc
12
13SRC_URI += "file://0001-Upgrade-radium-to-1.0.patch;patchdir=${UNPACKDIR}/cargo_home/bitbake/bitvec-1.0.1/"
14SRC_URI += "file://0001-cargo.toml-Update-bitvec-to-use-radium-1.x.patch"
15SRC_URI[sha256sum] = "6bf31628ab6d0e7c7c0372419898c52ef0a447b33ab47c7f62053bd013cc5b09"
16
17DEPENDS = "python3-maturin-native python3-typing-extensions"
18
19inherit pypi cargo-update-recipe-crates python_maturin ptest-python-pytest
20
21PYPI_PACKAGE = "pydantic_core"
22UPSTREAM_CHECK_PYPI_PACKAGE = "${PYPI_PACKAGE}"
23
24RDEPENDS:${PN} += " \
25 python3-compression \
26 python3-typing-extensions \
27"
28
29INSANE_SKIP:${PN} = "already-stripped"
30
31# python3-misc is for Lib/timeit.py which is not split out elsewhere
32RDEPENDS:${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
45do_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
50BBCLASSEXTEND = "native nativesdk"