diff options
author | Justin Lecher <jlec@gentoo.org> | 2016-01-10 09:22:31 +0100 |
---|---|---|
committer | Justin Lecher <jlec@gentoo.org> | 2016-01-10 09:23:41 +0100 |
commit | 005e7f576f2487304741d9d39aeaeb845a27e326 (patch) | |
tree | f500384a020341df6a0181615fd170919ff2b1b1 /dev-python/py-amqp/py-amqp-1.4.9.ebuild | |
parent | dev-python/hypothesis: Version Bump (diff) | |
download | gentoo-005e7f576f2487304741d9d39aeaeb845a27e326.tar.gz gentoo-005e7f576f2487304741d9d39aeaeb845a27e326.tar.bz2 gentoo-005e7f576f2487304741d9d39aeaeb845a27e326.zip |
dev-python/py-amqp: Version Bump
Package-Manager: portage-2.2.26
Signed-off-by: Justin Lecher <jlec@gentoo.org>
Diffstat (limited to 'dev-python/py-amqp/py-amqp-1.4.9.ebuild')
-rw-r--r-- | dev-python/py-amqp/py-amqp-1.4.9.ebuild | 66 |
1 files changed, 66 insertions, 0 deletions
diff --git a/dev-python/py-amqp/py-amqp-1.4.9.ebuild b/dev-python/py-amqp/py-amqp-1.4.9.ebuild new file mode 100644 index 000000000000..5edc15a5e467 --- /dev/null +++ b/dev-python/py-amqp/py-amqp-1.4.9.ebuild @@ -0,0 +1,66 @@ +# Copyright 1999-2016 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 +} |