diff options
| author | root <root@alpha.trunkmasters.com> | 2026-06-12 19:09:37 -0500 |
|---|---|---|
| committer | root <root@alpha.trunkmasters.com> | 2026-06-12 19:09:37 -0500 |
| commit | b590c8d7572b727d565cc0b8ff660d43569845de (patch) | |
| tree | 06f7a4102ea4e845df8b66660f252920d52952f9 /dev-python/pika | |
| parent | 24f9cbfc4c34fdb6a6e03311674414e881ceab47 (diff) | |
| download | baldeagleos-repo-b590c8d7572b727d565cc0b8ff660d43569845de.tar.gz baldeagleos-repo-b590c8d7572b727d565cc0b8ff660d43569845de.tar.xz baldeagleos-repo-b590c8d7572b727d565cc0b8ff660d43569845de.zip | |
Adding metadata
Diffstat (limited to 'dev-python/pika')
| -rw-r--r-- | dev-python/pika/Manifest | 2 | ||||
| -rw-r--r-- | dev-python/pika/metadata.xml | 13 | ||||
| -rw-r--r-- | dev-python/pika/pika-1.3.2.ebuild | 63 | ||||
| -rw-r--r-- | dev-python/pika/pika-1.4.1.ebuild | 60 |
4 files changed, 138 insertions, 0 deletions
diff --git a/dev-python/pika/Manifest b/dev-python/pika/Manifest new file mode 100644 index 000000000000..39e6dff3b91b --- /dev/null +++ b/dev-python/pika/Manifest @@ -0,0 +1,2 @@ +DIST pika-1.3.2.gh.tar.gz 323647 BLAKE2B 30cd1154bd35708a29a924d6f0f646ebdd3737745ba588e5d56fd2ae6b2a138005352475b346738b5eea66adadedb0c50fa9411f659c4f6c6b81bc9bf048c7fb SHA512 86c1c33db808274052cbe18af68bef685fafa260f692d16dcd3ce6259107c343ebdd3482713a7948583566581defa6037f3344d03b11c50458432d044d8b2057 +DIST pika-1.4.1.gh.tar.gz 337544 BLAKE2B e6c402cfefd08e1667de322d3ed6190cafb2abbd18e6e95876528390a9ff92592b7d95db5d2a08e6d1ebd3b112252c0f223d77a1c9542ba9259f0e6bcf670ae5 SHA512 6a40eeb17bb8687648c3c0b2bb791421c1af7275b92e94514adb3d4a5f58743d789616e9de447518f16b57cae9ef37c1e44b841a7239059a564a3a7ef6be5455 diff --git a/dev-python/pika/metadata.xml b/dev-python/pika/metadata.xml new file mode 100644 index 000000000000..a2cb079ded53 --- /dev/null +++ b/dev-python/pika/metadata.xml @@ -0,0 +1,13 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "https://docs.baldeagleos.com/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <email>alexxy@gentoo.org</email> + <name>Alexey Shvetsov</name> + </maintainer> + <longdescription> + Pika is a pure-Python implementation of the AMQP 0-9-1 protocol that tries to stay fairly independent of the underlying network support library. Pika was developed primarily for use with RabbitMQ, but should also work with other AMQP 0-9-1 brokers. + </longdescription> + <stabilize-allarches /> + <origin>baldeagleos-repo</origin> +</pkgmetadata> diff --git a/dev-python/pika/pika-1.3.2.ebuild b/dev-python/pika/pika-1.3.2.ebuild new file mode 100644 index 000000000000..ef54bc76a6dd --- /dev/null +++ b/dev-python/pika/pika-1.3.2.ebuild @@ -0,0 +1,63 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{13..14} ) +inherit distutils-r1 + +DESCRIPTION="Pure-Python implementation of the AMQP" +HOMEPAGE=" + https://pika.readthedocs.io/ + https://github.com/pika/pika/ + https://pypi.org/project/pika/ +" +SRC_URI="https://github.com/pika/pika/archive/${PV}.tar.gz -> ${P}.gh.tar.gz" + +LICENSE="MPL-2.0" +SLOT="0" +KEYWORDS="~amd64 ~arm64 ~x86" +IUSE="test" +RESTRICT="test !test? ( test )" +PROPERTIES="test_network" + +BDEPEND=" + test? ( + dev-python/nose2[${PYTHON_USEDEP}] + dev-python/twisted[${PYTHON_USEDEP}] + dev-python/tornado[${PYTHON_USEDEP}] + net-misc/rabbitmq-server + ) +" + +src_prepare() { + sed -e 's/test_with_gevent/_&/' -i tests/base/async_test_base.py || die + + distutils-r1_src_prepare +} + +python_test() { + nose2 -v || die "Tests failed with ${EPYTHON}" +} + +src_test() { + einfo "Starting rabbitmq" + local -x RABBITMQ_LOG_BASE="${T}/rabbitmq/log" + local -x RABBITMQ_MNESIA_BASE="${T}/rabbitmq/mnesia" + local -x RABBITMQ_LOGS="${T}/rabbitmq.log" + local -x RABBITMQ_PID_FILE="${T}/rabbitmq.pid" + local -x RABBITMQ_ENABLED_PLUGINS_FILE="${T}/rabbitmq/enabled_plugins" + /usr/libexec/rabbitmq/rabbitmq-server -p 5672:5672 & + + einfo "Waiting for rabbitmq to fully load" + while ! { echo >/dev/tcp/localhost/5672 ; } &> /dev/null; do + sleep 1 + done + einfo "rabbitmq is ready" + + distutils-r1_src_test + + einfo "Stopping rabbitmq" + kill "$(<"${RABBITMQ_PID_FILE}")" || die +} diff --git a/dev-python/pika/pika-1.4.1.ebuild b/dev-python/pika/pika-1.4.1.ebuild new file mode 100644 index 000000000000..bc49a6e21442 --- /dev/null +++ b/dev-python/pika/pika-1.4.1.ebuild @@ -0,0 +1,60 @@ +# Copyright 1999-2026 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{13..14} ) +inherit distutils-r1 + +DESCRIPTION="Pure-Python implementation of the AMQP" +HOMEPAGE=" + https://pika.readthedocs.io/ + https://github.com/pika/pika/ + https://pypi.org/project/pika/ +" +SRC_URI="https://github.com/pika/pika/archive/${PV}.tar.gz -> ${P}.gh.tar.gz" + +LICENSE="MPL-2.0" +SLOT="0" +KEYWORDS="~amd64 ~arm64 ~x86" +IUSE="test" +RESTRICT="test !test? ( test )" +PROPERTIES="test_network" + +BDEPEND=" + test? ( + dev-python/twisted[${PYTHON_USEDEP}] + dev-python/tornado[${PYTHON_USEDEP}] + net-misc/rabbitmq-server + ) +" + +EPYTEST_PLUGINS=( pytest-timeout ) +EPYTEST_XDIST=1 +distutils_enable_tests pytest + +python_test() { + epytest -k "not test_with_gevent" +} + +src_test() { + einfo "Starting rabbitmq" + local -x RABBITMQ_LOG_BASE="${T}/rabbitmq/log" + local -x RABBITMQ_MNESIA_BASE="${T}/rabbitmq/mnesia" + local -x RABBITMQ_LOGS="${T}/rabbitmq.log" + local -x RABBITMQ_PID_FILE="${T}/rabbitmq.pid" + local -x RABBITMQ_ENABLED_PLUGINS_FILE="${T}/rabbitmq/enabled_plugins" + /usr/libexec/rabbitmq/rabbitmq-server -p 5672:5672 & + + einfo "Waiting for rabbitmq to fully load" + while ! { echo >/dev/tcp/localhost/5672 ; } &> /dev/null; do + sleep 1 + done + einfo "rabbitmq is ready" + + distutils-r1_src_test + + einfo "Stopping rabbitmq" + kill "$(<"${RABBITMQ_PID_FILE}")" || die +} |
