summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJustin Lecher <jlec@gentoo.org>2015-10-19 16:42:05 +0200
committerJustin Lecher <jlec@gentoo.org>2015-10-19 18:29:11 +0200
commit4af7611fb290a55699a7bc3df0ce2dc1c79a5db6 (patch)
tree27e1d83bc41a2212b58d923c257f3ada5ce680ad /dev-python/py-amqp
parentdev-python/xlsxwriter: Version Bump (diff)
downloadgentoo-4af7611fb290a55699a7bc3df0ce2dc1c79a5db6.tar.gz
gentoo-4af7611fb290a55699a7bc3df0ce2dc1c79a5db6.tar.bz2
gentoo-4af7611fb290a55699a7bc3df0ce2dc1c79a5db6.zip
dev-python/py-amqp: Version Bump
Package-Manager: portage-2.2.23 Signed-off-by: Justin Lecher <jlec@gentoo.org>
Diffstat (limited to 'dev-python/py-amqp')
-rw-r--r--dev-python/py-amqp/Manifest1
-rw-r--r--dev-python/py-amqp/py-amqp-1.4.7.ebuild66
2 files changed, 67 insertions, 0 deletions
diff --git a/dev-python/py-amqp/Manifest b/dev-python/py-amqp/Manifest
index 2ac37c799409..c26067d713bc 100644
--- a/dev-python/py-amqp/Manifest
+++ b/dev-python/py-amqp/Manifest
@@ -1,2 +1,3 @@
DIST amqp-1.4.5.tar.gz 77748 SHA256 534c807c0081ce9c2d517615e724cb6e9df17f79cd6cd4929653ea1ea60edb60 SHA512 33cc0df95786afbd7861585a5fad4c9ec3d28709aaafdba6a7b2b8e2b36b79a129e320ce945ef59f87ccb4e83bdf68ca9bf54b4759dc2e6ba2f131777398d702 WHIRLPOOL 471731462bfa2104f0abbffbe870f47420813e8f1a20ec901414313f34105d1a5e2e9e2ef990b1e7ce09a3442af6fd6b4a4e25f293ae3d834f9953e63caab630
DIST amqp-1.4.6.tar.gz 77902 SHA256 ebcfc867de5a68f9f5ba14d11dbad88e6aff8435a8d39339d5ceb0e5b06de640 SHA512 fe5cd7cafd9d6a4b8c1ab88a2757db440cd7b415b29c608f51052662d4c7d9e3fae81895ea09ec88f74e83ae9615c5f60b5857417b5d645086f88fc93527758c WHIRLPOOL 599dac45d24ac56407f9fbc1e00cc49884fa3717c3cbf8f7a9b59cfb78a5d9506341169f174cb7a1278e8e6745ae04aa14b6448a5250e5c40843a50f82d01d95
+DIST amqp-1.4.7.tar.gz 79189 SHA256 1781884b53e01209eeced13ca1d941f1a7026088974edb6fb62728638bd02dda SHA512 e8bcd61bd331a12965c83e62d458c5fefae41f4765fb3a816aca3c8bdd373c8a96ee24f3aef45a53d9eca2f5ae226ab259db92e3308e624420bc221509d1d8d1 WHIRLPOOL c7bd339fe7c44abe226c4ae59f424584794831d7306e2eb5c0657696fb8048604be181c0cb1c5eccef049a5b92ce97cc6a07f1a8bde6ce8ef44cf2189a8c6e4a
diff --git a/dev-python/py-amqp/py-amqp-1.4.7.ebuild b/dev-python/py-amqp/py-amqp-1.4.7.ebuild
new file mode 100644
index 000000000000..8dbfd8353dc8
--- /dev/null
+++ b/dev-python/py-amqp/py-amqp-1.4.7.ebuild
@@ -0,0 +1,66 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+PYTHON_COMPAT=( python{2_7,3_3,3_4} pypy )
+
+inherit distutils-r1
+
+MY_PN="amqp"
+MY_P="${MY_PN}-${PV}"
+
+DESCRIPTION="Low-level AMQP client for Python (fork of amqplib)"
+HOMEPAGE="https://github.com/celery/py-amqp https://pypi.python.org/pypi/amqp/"
+SRC_URI="mirror://pypi/${MY_PN:0:1}/${MY_PN}/${MY_P}.tar.gz"
+
+S="${WORKDIR}/${MY_P}"
+
+LICENSE="LGPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="doc examples extras test"
+
+RDEPEND=""
+DEPEND="
+ dev-python/setuptools[${PYTHON_USEDEP}]
+ doc? (
+ dev-python/sphinx[${PYTHON_USEDEP}]
+ >=dev-python/sphinxcontrib-issuetracker-0.9[${PYTHON_USEDEP}]
+ )
+ test? (
+ dev-python/nose[${PYTHON_USEDEP}]
+ dev-python/nose-cover3[${PYTHON_USEDEP}]
+ >=dev-python/coverage-3.0[${PYTHON_USEDEP}]
+ dev-python/mock[${PYTHON_USEDEP}]
+ )
+"
+
+# Same tests from before require a socket connection
+PATCHES=( "${FILESDIR}"/${PN}-1.3.3-disable_socket_tests.patch )
+
+python_compile_all() {
+ use doc && emake -C docs html
+}
+
+python_test() {
+ cp -r -l funtests "${BUILD_DIR}"/lib/ || die
+ cd "${BUILD_DIR}"/lib || die
+ if [[ ${EPYTHON:6:1} == 3 ]]; then
+ # -n causes Python to write into hardlinked files
+ 2to3 --no-diffs -w funtests || die
+ fi
+ "${PYTHON}" funtests/run_all.py || die "Tests failed under ${EPYTHON}"
+ rm -rf funtests/ || die
+}
+
+python_install_all() {
+ use examples && local EXAMPLES=( demo/. )
+ use doc && local HTML_DOCS=( docs/.build/html/. )
+ if use extras; then
+ insinto /usr/share/${PF}/extras
+ doins -r extra
+ fi
+ distutils-r1_python_install_all
+}