diff options
author | V3n3RiX <venerix@koprulu.sector> | 2025-03-14 00:28:41 +0000 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2025-03-14 00:28:41 +0000 |
commit | 37185a5f2fd3d3e821d63ca90dffe9629d147da1 (patch) | |
tree | 70a2084367740ac0a0546d4084db7c4b517659d0 /dev-python/pyzmq | |
parent | b3f96499c112618ec301a4852f24b8b8be123d3a (diff) |
gentoo auto-resync : 14:03:2025 - 00:28:41
Diffstat (limited to 'dev-python/pyzmq')
-rw-r--r-- | dev-python/pyzmq/Manifest | 2 | ||||
-rw-r--r-- | dev-python/pyzmq/pyzmq-26.3.0.ebuild | 87 |
2 files changed, 89 insertions, 0 deletions
diff --git a/dev-python/pyzmq/Manifest b/dev-python/pyzmq/Manifest index 7c09453b5d46..177cb63d5596 100644 --- a/dev-python/pyzmq/Manifest +++ b/dev-python/pyzmq/Manifest @@ -1,3 +1,5 @@ DIST pyzmq-26.2.1.gh.tar.gz 279826 BLAKE2B 72ad282e8fd93f8ea9e3f709d748fd89a2a93e4af0f69d807b78654617195fb9b99646084747c617d1648c7ce0da55d01f2cd283eafa86e834df0a97ad578a7f SHA512 d68f8769ebb57e54eb405f9e8a6dda0cef8be912288c1cc9addaf6cd952f1b95029049f8c9300d05abb592b234fdb147f29e4430f1624132bda868b8a3ec8a20 +DIST pyzmq-26.3.0.gh.tar.gz 278127 BLAKE2B baa30f3901a76786933df8ab676a759ea3bf6a863508ea76c66e53e844c8bbb8a445a2b01ac65163af043ca81cc097db6edf3d6e95d92d9f1c134fd29160e403 SHA512 463124f0788b2370de1f3b14fcaeebca29f81f96bf5dbc959c6aef77710ccd5dbf5a68aa436ab3915c18c46367ba2034b5320f49bf9cda2a4c13b528adad212e EBUILD pyzmq-26.2.1.ebuild 2113 BLAKE2B 1f20c8886e5e9c149e5f882d189afc233a745b7f0ec04e0330833743d839ef5078617c7ce3448fbbd9b7e4520fdd0ea6b4dac617986fef65b36694a3e576c3b3 SHA512 ad517b4fce41f5c294371d103a900aeac4c2f8f001f6da52b96b34910f3379b8cb69805dafd622d065a3d25cd6c2f709c487521f547bdea7e6bf3477f1766f89 +EBUILD pyzmq-26.3.0.ebuild 2121 BLAKE2B 94e5c11322d3d06f4d511e0fb1a77534d9c9d55edba5ea34d721678ecf7d15eeb4dadc0860da5cba3ae46a5f8fa74df680ca90b6482376247947278895662adf SHA512 e1b0476e24878939fcbb9992b0aef652d57270262b2c65ded7e73da9b68e5244f0f3255025390a44933e89b50657744e9862eb1505293cc918669211f77de767 MISC metadata.xml 536 BLAKE2B da6bb83977b50c7d62d288eb36890eae8203b31fe943c7159519fbba3a489aa5be94f6eccb150dc21d24e01988e8862cbb1b8f51cf5b47f3564a00d16ef19335 SHA512 9ddef2906564fae6aaff83a6aa00b47da207220f46a3f7618496fdb7cdf68e522bcd89587327735568a4ec82d533f8e9f6db499c7c634be182492de5660c3b05 diff --git a/dev-python/pyzmq/pyzmq-26.3.0.ebuild b/dev-python/pyzmq/pyzmq-26.3.0.ebuild new file mode 100644 index 000000000000..22c2e9199ebe --- /dev/null +++ b/dev-python/pyzmq/pyzmq-26.3.0.ebuild @@ -0,0 +1,87 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_EXT=1 +DISTUTILS_USE_PEP517=scikit-build-core +PYTHON_COMPAT=( pypy3 pypy3_11 python3_{10..13} ) +PYTHON_REQ_USE="threads(+)" + +inherit distutils-r1 + +DESCRIPTION="Lightweight and super-fast messaging library built on top of the ZeroMQ library" +HOMEPAGE=" + https://zeromq.org/languages/python/ + https://pypi.org/project/pyzmq/ + https://github.com/zeromq/pyzmq/ +" +SRC_URI=" + https://github.com/zeromq/pyzmq/archive/v${PV}.tar.gz + -> ${P}.gh.tar.gz +" + +LICENSE="LGPL-3" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~m68k ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~arm64-macos ~x64-macos" +IUSE="drafts" + +# There are additional test failures if zeromq has the draft api enabled, but pyzmq has it disabled. +DEPEND=" + >=net-libs/zeromq-4.2.2-r2:=[drafts=] +" +# It uses cffi backend for pypy, cython backend for cpython +RDEPEND=" + ${DEPEND} +" +BDEPEND=" + dev-python/packaging[${PYTHON_USEDEP}] + $(python_gen_cond_dep ' + >=dev-python/cython-3.0.0[${PYTHON_USEDEP}] + ' 'python*') + test? ( + dev-python/pytest-asyncio[${PYTHON_USEDEP}] + dev-python/pytest-rerunfailures[${PYTHON_USEDEP}] + >=dev-python/tornado-5.0.2[${PYTHON_USEDEP}] + ) +" + +distutils_enable_tests pytest +# TODO: Package enum_tools +# distutils_enable_sphinx docs/source \ +# dev-python/numpydoc \ +# dev-python/sphinx-rtd-theme \ +# dev-python/myst-parser + +src_configure() { + DISTUTILS_ARGS=( + -DZMQ_DRAFT_API="$(usex drafts)" + -DPYZMQ_NO_BUNDLE=ON + # unnecessarily adds /usr/lib* to rpath + -DPYZMQ_LIBZMQ_RPATH=OFF + ) +} + +python_test() { + local EPYTEST_DESELECT=( + # often crashes zmq? + tests/test_log.py::TestPubLog + ) + local EPYTEST_IGNORE=( + # Avoid dependency on mypy + tests/test_mypy.py + ) + + case ${EPYTHON} in + pypy3*) + EPYTEST_DESELECT+=( + # not implemented in cffi variant? + tests/test_draft.py::TestDraftSockets + ) + esac + + local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 + rm -rf zmq || die + # avoid large to reduce memory consumption + epytest -p asyncio -p rerunfailures tests -m "not large" +} |