summaryrefslogtreecommitdiff
path: root/dev-python/txamqp
diff options
context:
space:
mode:
authorLiguros - Gitlab CI/CD [develop] <gitlab@liguros.net>2024-11-23 06:48:31 +0000
committerLiguros - Gitlab CI/CD [develop] <gitlab@liguros.net>2024-11-23 06:48:31 +0000
commit2192265bf68cb7383759a6296f267e6c6807749a (patch)
tree60e9f62c07f98d98ea3901f11670c3d4511518f2 /dev-python/txamqp
parent603bf0a1dfd4cf571ac6da7bcb33911cf5259ab2 (diff)
downloadbaldeagleos-repo-2192265bf68cb7383759a6296f267e6c6807749a.tar.gz
baldeagleos-repo-2192265bf68cb7383759a6296f267e6c6807749a.tar.xz
baldeagleos-repo-2192265bf68cb7383759a6296f267e6c6807749a.zip
Adding metadata
Diffstat (limited to 'dev-python/txamqp')
-rw-r--r--dev-python/txamqp/Manifest1
-rw-r--r--dev-python/txamqp/metadata.xml13
-rw-r--r--dev-python/txamqp/txamqp-0.8.2-r1.ebuild74
3 files changed, 88 insertions, 0 deletions
diff --git a/dev-python/txamqp/Manifest b/dev-python/txamqp/Manifest
new file mode 100644
index 000000000000..a42034dab274
--- /dev/null
+++ b/dev-python/txamqp/Manifest
@@ -0,0 +1 @@
+DIST txamqp-0.8.2.gh.tar.gz 118560 BLAKE2B 6e60cc0785462b92d046a620cc09eda8b7783bd09186a60299eba11c8f6f5780fc38b094ea974e4f1e443d3d30ee1428f30ad25fdb43554d25db17f36d323527 SHA512 4a5e468482433e684dc690abddeba3e0a6c77630055afe44487de72feecad9c750d179c43dee4e781d09c9c21259cecd615dc9f6eaa7d9ff7ca0796248ad5a02
diff --git a/dev-python/txamqp/metadata.xml b/dev-python/txamqp/metadata.xml
new file mode 100644
index 000000000000..0c48affb2cc5
--- /dev/null
+++ b/dev-python/txamqp/metadata.xml
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "https://liguros.gitlab.io/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>python@gentoo.org</email>
+ <name>Python</name>
+ </maintainer>
+ <upstream>
+ <bugs-to>https://github.com/txamqp/txamqp/issues</bugs-to>
+ </upstream>
+ <origin>gentoo-staging</origin>
+ <stabilize-allarches/>
+</pkgmetadata> \ No newline at end of file
diff --git a/dev-python/txamqp/txamqp-0.8.2-r1.ebuild b/dev-python/txamqp/txamqp-0.8.2-r1.ebuild
new file mode 100644
index 000000000000..8f929392845a
--- /dev/null
+++ b/dev-python/txamqp/txamqp-0.8.2-r1.ebuild
@@ -0,0 +1,74 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_USE_PEP517=setuptools
+PYTHON_COMPAT=( python3_{9,10,11,12,13} )
+PYTHON_REQ_USE="xml(+)"
+
+inherit distutils-r1
+
+DESCRIPTION="Python library for communicating with AMQP peers using Twisted"
+HOMEPAGE="https://github.com/txamqp/txamqp"
+# pypi tarball misses doc files
+# https://github.com/txamqp/txamqp/pull/10
+SRC_URI="
+ https://github.com/txamqp/txamqp/archive/${PV}.tar.gz
+ -> ${P}.gh.tar.gz
+"
+
+LICENSE="Apache-2.0"
+SLOT="0"
+KEYWORDS="~amd64 ~x86 ~x64-solaris"
+IUSE="test"
+RESTRICT="!test? ( test )"
+
+RDEPEND="
+ dev-python/twisted[${PYTHON_USEDEP}]
+ dev-python/six[${PYTHON_USEDEP}]
+"
+BDEPEND="
+ test? (
+ ${RDEPEND}
+ net-misc/rabbitmq-server
+ )
+"
+
+python_test() {
+ cd src || die
+ # tests look for those files relatively to modules
+ cp -r specs "${BUILD_DIR}"/lib || die
+
+ TXAMQP_BROKER=RABBITMQ "${EPYTHON}" -m twisted.trial txamqp
+ local ret=${?}
+
+ [[ ${ret} == 0 ]] || 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
+}
+
+python_install_all() {
+ local DOCS=( doc/* )
+
+ distutils-r1_python_install_all
+}