From 15b800ce8485aa5b0c0a05601cef8fa93ac14179 Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Mon, 29 Sep 2014 16:31:44 -0700 Subject: [PATCH] dev-python/tornado-pyvows: Add this (indirect) thumbor test dependency I haven't tracked down the cause of the pyvows 2.0.5 breakage [1]. [1]: https://github.com/rafaelcaricio/tornado_pyvows/commit/1d264b963f36c77d5e109df946fe38cb2457fc7b 1d264b96 (Pyvows 2.0.5 has broken tornado_pyvows, 2014-05-19) --- tornado-pyvows-9999.ebuild | 45 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 tornado-pyvows-9999.ebuild diff --git a/tornado-pyvows-9999.ebuild b/tornado-pyvows-9999.ebuild new file mode 100644 index 0000000..14e74c7 --- /dev/null +++ b/tornado-pyvows-9999.ebuild @@ -0,0 +1,45 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +EAPI=5 +PYTHON_COMPAT=( python2_7 ) + +inherit distutils-r1 + +MY_PN="tornado_pyvows" +MY_P="${MY_PN}-${PV}" + +if [[ "${PV}" == "9999" ]]; then + inherit git-2 + EGIT_REPO_URI="git://github.com/rafaelcaricio/${MY_PN}.git" + SRC_URI="" +else + SRC_URI="mirror://pypi/${MY_P:0:1}/${MY_PN}/${MY_P}.tar.gz -> ${P}.tar.gz" +fi + +DESCRIPTION="Extensions to test Tornado apps under pyvows" +HOMEPAGE="https://github.com/rafaelcaricio/tornado_pyvows https://pypi.python.org/pypi/tornado_pyvows" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="test" + +RDEPEND=" + dev-python/pycurl[${PYTHON_USEDEP}] + <=dev-python/pyvows-2.0.3[${PYTHON_USEDEP}] + dev-python/urllib3[${PYTHON_USEDEP}] + www-servers/tornado[${PYTHON_USEDEP}] + " +DEPEND=" + test? ( + ${RDEPEND} + dev-python/mock[${PYTHON_USEDEP}] + )" + +S="${WORKDIR}/${MY_P}" + +python_test() { + "${EPYTHON}" -c 'import pyvows.cli; pyvows.cli.main()' vows/ || die "tests failed with ${EPYTHON}" +} -- 2.26.2