mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-11-03 04:37:06 -08:00
Python STOMP client library + CLI tool. No tests because running them requires either Docker or carefully setting up several different messaging servers. May or may not support pypy3, for the time being this is blocked by dev-python/docopt. Signed-off-by: Marek Szuba <marecki@gentoo.org>
34 lines
1.0 KiB
Bash
34 lines
1.0 KiB
Bash
# Copyright 1999-2020 Gentoo Authors
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
EAPI=7
|
|
|
|
PYTHON_COMPAT=( python3_{7..9} )
|
|
DISTUTILS_USE_SETUPTOOLS="pyproject.toml"
|
|
|
|
inherit distutils-r1
|
|
|
|
MY_PN="${PN//-/.}"
|
|
MY_P="${MY_PN}-${PV}"
|
|
|
|
DESCRIPTION="Python client library for the STOMP messaging protocol"
|
|
HOMEPAGE="https://pypi.org/project/stomp.py/ https://github.com/jasonrbriggs/stomp.py/"
|
|
SRC_URI="mirror://pypi/${MY_PN:0:1}/${MY_PN}/${MY_P}.tar.gz"
|
|
|
|
LICENSE="Apache-2.0"
|
|
SLOT="0"
|
|
KEYWORDS="~amd64"
|
|
|
|
RDEPEND="<dev-python/docopt-0.7.0[${PYTHON_USEDEP}]"
|
|
|
|
# stomp.py test suite requires quite a few appropriately configured
|
|
# messaging servers (as of 6.1.0: RabbitMQ, ActiveMQ, ActiveMQ Artemis,
|
|
# stompserver). Upstream relies on Docker to provide those servers, however
|
|
# doing the same in src_test would require both granting the portage user
|
|
# extra permissions and packaging the base image (trying to download it
|
|
# on the fly would violate the network sandbox).
|
|
# Side note: PyPI tarballs do not include tests.
|
|
RESTRICT="test"
|
|
|
|
S="${WORKDIR}"/${MY_P}
|