1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-23 03:05:48 +03:00
aports/community/py3-pyzmq/APKBUILD
2023-03-01 23:37:51 +00:00

51 lines
2 KiB
Text

# Contributor: Valery Kartel <valery.kartel@gmail.com>
# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
pkgname=py3-pyzmq
_pkgname=pyzmq
pkgver=23.2.1
pkgrel=2
pkgdesc="Python bindings for ZeroMQ"
url="https://pypi.org/project/pyzmq"
arch="all"
license="LGPL-3.0-or-later AND BSD-3-Clause"
depends="python3"
makedepends="python3-dev py3-setuptools zeromq-dev"
checkdepends="py3-pytest"
source="https://files.pythonhosted.org/packages/source/p/$_pkgname/$_pkgname-$pkgver.tar.gz"
builddir="$srcdir/$_pkgname-$pkgver"
replaces=py-zmq # Backwards compatibility
provides=py-zmq=$pkgver-r$pkgrel # Backwards compatibility
build() {
python3 setup.py build
}
check() {
python3 setup.py build_ext --inplace
# TestAsyncioAuthentication hangs
# TestPubLog random failures on ppc64le/s390x/aarch64
py.test-3 -v \
--deselect zmq/tests/test_log.py::TestPubLog::test_blank_root_topic \
--deselect zmq/tests/test_log.py::TestPubLog::test_custom_debug_formatter \
--deselect zmq/tests/test_log.py::TestPubLog::test_custom_global_formatter \
--deselect zmq/tests/test_log.py::TestPubLog::test_init_iface \
--deselect zmq/tests/test_log.py::TestPubLog::test_init_socket \
--deselect zmq/tests/test_log.py::TestPubLog::test_root_topic \
--deselect zmq/tests/test_log.py::TestPubLog::test_set_info_formatter_via_property \
--deselect zmq/tests/test_log.py::TestPubLog::test_unicode_message \
--deselect zmq/tests/asyncio/test_asyncio.py::TestAsyncioAuthentication::test_blacklist \
--deselect zmq/tests/asyncio/test_asyncio.py::TestAsyncioAuthentication::test_curve \
--deselect zmq/tests/asyncio/test_asyncio.py::TestAsyncioAuthentication::test_plain \
--deselect zmq/tests/test_context.py::TestContext::test_mockable \
--deselect zmq/tests/test_cython.py::test_cython[3] \
--deselect zmq/tests/test_cython.py::test_cython[2]
}
package() {
python3 setup.py install --skip-build --root="$pkgdir"
}
sha512sums="
c8f2dc858076641a219ea37af91ad4a15ee811e8d2095b0337d414cc702eaf90ee4d6280bda7800667828dffaedcdb026553262d5473f9fb70bbd17c17b248f4 pyzmq-23.2.1.tar.gz
"