python3-pyzmq_25.1.2.bb 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. SUMMARY = "PyZMQ: Python bindings for ZMQ"
  2. DESCRIPTION = "This package contains Python bindings for ZeroMQ. ZMQ is a lightweight and fast messaging implementation."
  3. HOMEPAGE = "https://zeromq.org/bindings:python"
  4. LICENSE = "BSD-3-Clause & LGPL-3.0-only"
  5. LIC_FILES_CHKSUM = "\
  6. file://LICENSE.BSD;md5=1787206f198344195a671b60326c59dc \
  7. file://LICENSE.LESSER;md5=0e99bfbdd8b9d33b0221986fe3be89ed \
  8. "
  9. DEPENDS = "python3-packaging-native python3-setuptools-scm-native zeromq"
  10. SRC_URI:append = " \
  11. file://club-rpath-out.patch \
  12. file://run-ptest \
  13. "
  14. SRC_URI[sha256sum] = "93f1aa311e8bb912e34f004cf186407a4e90eec4f0ecc0efd26056bf7eda0226"
  15. inherit pypi pkgconfig python_setuptools_build_meta ptest cython
  16. PACKAGES =+ "\
  17. ${PN}-test \
  18. "
  19. FILES:${PN}-test += "\
  20. ${PYTHON_SITEPACKAGES_DIR}/*/tests \
  21. "
  22. RDEPENDS:${PN} += "\
  23. python3-json \
  24. python3-multiprocessing \
  25. python3-tornado \
  26. "
  27. RDEPENDS:${PN}-ptest += "\
  28. ${PN}-test \
  29. python3-pytest \
  30. python3-unittest-automake-output \
  31. python3-unixadmin \
  32. "
  33. do_compile:prepend() {
  34. echo [global] > ${S}/setup.cfg
  35. echo zmq_prefix = ${STAGING_DIR_HOST} >> ${S}/setup.cfg
  36. echo have_sys_un_h = True >> ${S}/setup.cfg
  37. echo skip_check_zmq = True >> ${S}/setup.cfg
  38. echo libzmq_extension = False >> ${S}/setup.cfg
  39. echo no_libzmq_extension = True >> ${S}/setup.cfg
  40. }
  41. do_install:append() {
  42. sed -i -e 's#${RECIPE_SYSROOT}##g' ${D}${PYTHON_SITEPACKAGES_DIR}/zmq/utils/config.json
  43. sed -i -e 's#${RECIPE_SYSROOT}##g' ${D}${PYTHON_SITEPACKAGES_DIR}/zmq/utils/compiler.json
  44. }
  45. do_install_ptest() {
  46. install -d ${D}${PTEST_PATH}/tests
  47. cp -rf ${S}/zmq/tests/* ${D}${PTEST_PATH}/tests/
  48. }