python3-pydantic-core_2.27.1.bb 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  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. LICENSE = "MIT"
  8. LIC_FILES_CHKSUM = "file://LICENSE;md5=ab599c188b4a314d2856b3a55030c75c"
  9. require ${BPN}-crates.inc
  10. SRC_URI += "file://run-ptest"
  11. SRC_URI[sha256sum] = "62a763352879b84aa31058fc931884055fd75089cccbd9d58bb6afd01141b235"
  12. DEPENDS = "python3-maturin-native python3-typing-extensions"
  13. inherit pypi cargo-update-recipe-crates python_maturin
  14. PYPI_PACKAGE = "pydantic_core"
  15. UPSTREAM_CHECK_PYPI_PACKAGE = "${PYPI_PACKAGE}"
  16. RDEPENDS:${PN} += " \
  17. python3-compression \
  18. python3-typing-extensions \
  19. "
  20. INSANE_SKIP:${PN} = "already-stripped"
  21. INSANE_SKIP:${PN} += "buildpaths"
  22. # python3-misc is for Lib/timeit.py which is not split out elsewhere
  23. inherit ptest
  24. RDEPENDS:${PN}-ptest += "\
  25. python3-dateutil \
  26. python3-dirty-equals \
  27. python3-hypothesis \
  28. python3-inline-snapshot \
  29. python3-misc \
  30. python3-pytest \
  31. python3-pytest-mock \
  32. python3-pytest-timeout \
  33. python3-pytest-benchmark \
  34. python3-tzdata \
  35. python3-unittest-automake-output \
  36. python3-zoneinfo \
  37. "
  38. do_install_ptest() {
  39. cp -rf ${S}/tests/ ${D}${PTEST_PATH}/
  40. 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
  41. }