blob: 504ef7abc0b7a4163bdf912587ad40bfea5c315b [file] [log] [blame]
Patrick Williams92b42cb2022-09-03 06:53:57 -05001SUMMARY = "PyZMQ: Python bindings for ZMQ"
2DESCRIPTION = "This package contains Python bindings for ZeroMQ. ZMQ is a lightweight and fast messaging implementation."
3HOMEPAGE = "http://zeromq.org/bindings:python"
4LICENSE = "BSD-3-Clause & LGPL-3.0-only"
5LIC_FILES_CHKSUM = "\
Andrew Geissler220dafd2023-10-04 10:18:08 -05006 file://LICENSE.BSD;md5=1787206f198344195a671b60326c59dc \
7 file://LICENSE.LESSER;md5=0e99bfbdd8b9d33b0221986fe3be89ed \
Patrick Williams92b42cb2022-09-03 06:53:57 -05008"
9
Andrew Geissler220dafd2023-10-04 10:18:08 -050010DEPENDS = "python3-packaging-native python3-cython-native python3-setuptools-scm-native zeromq"
Patrick Williams92b42cb2022-09-03 06:53:57 -050011
12SRC_URI:append = " \
13 file://club-rpath-out.patch \
14 file://run-ptest \
15"
Andrew Geissler220dafd2023-10-04 10:18:08 -050016SRC_URI[sha256sum] = "259c22485b71abacdfa8bf79720cd7bcf4b9d128b30ea554f01ae71fdbfdaa23"
Patrick Williams92b42cb2022-09-03 06:53:57 -050017
18inherit pypi pkgconfig python_setuptools_build_meta ptest
19
20PACKAGES =+ "\
21 ${PN}-test \
22"
23
24FILES:${PN}-test += "\
25 ${libdir}/${PYTHON_DIR}/site-packages/*/tests \
26"
27
28RDEPENDS:${PN} += "\
29 ${PYTHON_PN}-json \
30 ${PYTHON_PN}-multiprocessing \
31"
32
33RDEPENDS:${PN}-ptest += "\
34 ${PN}-test \
Andrew Geissler87f5cff2022-09-30 13:13:31 -050035 ${PYTHON_PN}-pytest \
Patrick Williams92b42cb2022-09-03 06:53:57 -050036"
37
38do_compile:prepend() {
39 echo [global] > ${S}/setup.cfg
40 echo zmq_prefix = ${STAGING_DIR_HOST} >> ${S}/setup.cfg
41 echo have_sys_un_h = True >> ${S}/setup.cfg
42 echo skip_check_zmq = True >> ${S}/setup.cfg
43 echo libzmq_extension = False >> ${S}/setup.cfg
44 echo no_libzmq_extension = True >> ${S}/setup.cfg
45}
46
Andrew Geissler87f5cff2022-09-30 13:13:31 -050047do_install:append() {
48 sed -i -e 's#${RECIPE_SYSROOT}##g' ${D}${PYTHON_SITEPACKAGES_DIR}/zmq/utils/config.json
49 sed -i -e 's#${RECIPE_SYSROOT}##g' ${D}${PYTHON_SITEPACKAGES_DIR}/zmq/utils/compiler.json
50}
51
Patrick Williams92b42cb2022-09-03 06:53:57 -050052do_install_ptest() {
53 install -d ${D}${PTEST_PATH}/tests
54 cp -rf ${S}/zmq/tests/* ${D}${PTEST_PATH}/tests/
55}