mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-08-06 12:58:16 -07:00
dev-python/pyzmq: add 23.2.1
Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
This commit is contained in:
@@ -1 +1,2 @@
|
||||
DIST pyzmq-23.2.0.gh.tar.gz 402085 BLAKE2B 4ab26af04c76205d0770163e248e28a22aa8f710a66c9dc96e18c772338c434ad06227d57edd5aa3476fad68fa7320e9216a102b2cb19649393f1e9ef5d9599c SHA512 348482f4b6fd4ebeae8e4720a7005ed35eccee2bf26b0128115b756ee560156b34e6f043c96b71a84d47b1313bd2d8e0ed0f74c7768e23cbf65bd906036800c5
|
||||
DIST pyzmq-23.2.1.gh.tar.gz 402170 BLAKE2B 4cedd065cecbabc0e18928423e853a38953cd1f360fc326573c60bf69ffefadf3bed556d9d71eedf824e646ae23640d14b6aa8938c397c367be32cc36d300e38 SHA512 4ba236b87db062b245a04530de5b1e8385491107ae8de465f6f664c75ab8a929d57491eb3f8dddf31ff1db7b1eee89a6892a9a844bc285096cc9960704b36c9c
|
||||
|
||||
81
dev-python/pyzmq/pyzmq-23.2.1.ebuild
Normal file
81
dev-python/pyzmq/pyzmq-23.2.1.ebuild
Normal file
@@ -0,0 +1,81 @@
|
||||
# Copyright 1999-2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
PYTHON_COMPAT=( python3_{8..11} )
|
||||
# TODO: Find out exactly where this error comes from
|
||||
# error: '<' not supported between instances of 'str' and 'int'
|
||||
#DISTUTILS_USE_PEP517=setuptools
|
||||
PYTHON_REQ_USE="threads(+)"
|
||||
|
||||
inherit flag-o-matic distutils-r1 toolchain-funcs
|
||||
|
||||
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="~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux"
|
||||
IUSE="+draft"
|
||||
|
||||
DEPEND="
|
||||
>=net-libs/zeromq-4.2.2-r2:=[drafts]
|
||||
"
|
||||
# it uses cffi backend for pypy, cython backend for cpython
|
||||
RDEPEND="${DEPEND}
|
||||
$(python_gen_cond_dep '
|
||||
dev-python/py[${PYTHON_USEDEP}]
|
||||
dev-python/cffi:=[${PYTHON_USEDEP}]
|
||||
' pypy3)
|
||||
"
|
||||
BDEPEND="
|
||||
$(python_gen_cond_dep '
|
||||
dev-python/cython[${PYTHON_USEDEP}]
|
||||
' 'python*')
|
||||
test? (
|
||||
dev-python/pytest-rerunfailures[${PYTHON_USEDEP}]
|
||||
>=www-servers/tornado-5.0.2[${PYTHON_USEDEP}]
|
||||
)
|
||||
"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}"/${PN}-23.2.0-libdir.patch
|
||||
)
|
||||
|
||||
distutils_enable_tests pytest
|
||||
distutils_enable_sphinx docs \
|
||||
"dev-python/numpydoc"
|
||||
|
||||
python_configure_all() {
|
||||
tc-export CC
|
||||
append-cppflags -DZMQ_BUILD_DRAFT_API=$(usex draft '1' '0')
|
||||
}
|
||||
|
||||
python_compile() {
|
||||
esetup.py cython --force
|
||||
ZMQ_PREFIX="${EPREFIX}/usr" distutils-r1_python_compile
|
||||
}
|
||||
|
||||
python_test() {
|
||||
local EPYTEST_DESELECT=(
|
||||
# TODO
|
||||
zmq/tests/test_constants.py::TestConstants::test_draft
|
||||
zmq/tests/test_cython.py::test_cython
|
||||
|
||||
# hangs often
|
||||
zmq/tests/test_log.py::TestPubLog::test_blank_root_topic
|
||||
)
|
||||
local EPYTEST_IGNORE=(
|
||||
zmq/tests/test_mypy.py
|
||||
)
|
||||
|
||||
cd "${BUILD_DIR}/lib" || die
|
||||
epytest -p no:flaky
|
||||
}
|
||||
Reference in New Issue
Block a user