dev-python/tornado-pyvows: Add this (indirect) thumbor test dependency
authorW. Trevor King <wking@tremily.us>
Mon, 29 Sep 2014 23:31:44 +0000 (16:31 -0700)
committerW. Trevor King <wking@tremily.us>
Mon, 29 Sep 2014 23:31:44 +0000 (16:31 -0700)
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 [new file with mode: 0644]

diff --git a/tornado-pyvows-9999.ebuild b/tornado-pyvows-9999.ebuild
new file mode 100644 (file)
index 0000000..14e74c7
--- /dev/null
@@ -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}"
+}