meta-openembedded/meta-python/recipes-devtools/python/python3-pyzmq_26.3.0.bb
Mingli Yu d4075ac943 python3-pyzmq: Upgrade 25.1.2 -> 26.3.0
* LICENSE update:
  pyzmq no longer ships an LGPL core, it is BSD-only [1].

  The LICENSE.BSD is renamed to LICENSE.md [2].

* The new version switches to scikit-build-core backend and build
  with cmake.

[1] 2f461c578b
[2] 1f4bc04f43

Signed-off-by: Mingli Yu <mingli.yu@windriver.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2025-04-11 08:20:13 -07:00

61 lines
1.8 KiB
BlitzBasic

SUMMARY = "PyZMQ: Python bindings for ZMQ"
DESCRIPTION = "This package contains Python bindings for ZeroMQ. ZMQ is a lightweight and fast messaging implementation."
HOMEPAGE = "https://zeromq.org/bindings:python"
LICENSE = "BSD-3-Clause"
LIC_FILES_CHKSUM = "\
file://LICENSE.md;md5=1787206f198344195a671b60326c59dc \
"
DEPENDS = "python3-packaging-native \
python3-setuptools-scm-native \
python3-scikit-build-core-native \
cmake-native \
ninja-native \
zeromq \
"
PEP517_BUILD_OPTS = "--skip-dependency-check \
-Ccmake.define.PYZMQ_LIBZMQ_RPATH=OFF \
-Ccmake.define.PYZMQ_NO_BUNDLE=ON \
-Ccmake.define.CMAKE_FIND_ROOT_PATH_MODE_PACKAGE=ONLY \
-Ccmake.define.CMAKE_FIND_ROOT_PATH_MODE_PROGRAM=ONLY \
-Ccmake.define.CMAKE_FIND_ROOT_PATH_MODE_LIBRARY=ONLY \
-Ccmake.define.CMAKE_FIND_ROOT_PATH_MODE_INCLUDE=ONLY \
-Ccmake.define.CMAKE_FIND_ROOT_PATH="${STAGING_DIR_NATIVE}" \
-Ccmake.build-type="RelWithDebInfo" \
"
SRC_URI:append = " \
file://run-ptest \
"
SRC_URI[sha256sum] = "f1cd68b8236faab78138a8fc703f7ca0ad431b17a3fcac696358600d4e6243b3"
inherit pypi pkgconfig python_setuptools_build_meta ptest cython
PACKAGES =+ "\
${PN}-test \
"
FILES:${PN}-test += "\
${PYTHON_SITEPACKAGES_DIR}/*/tests \
"
RDEPENDS:${PN} += "\
python3-json \
python3-multiprocessing \
python3-tornado \
"
RDEPENDS:${PN}-ptest += "\
${PN}-test \
python3-pytest \
python3-unittest-automake-output \
python3-unixadmin \
"
do_install_ptest() {
install -d ${D}${PTEST_PATH}/tests
cp -rf ${S}/tests/* ${D}${PTEST_PATH}/tests/
}