Gentoo Archives: gentoo-commits

From: Brian Dolbec <dolsen@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/txgithub/
Date: Sat, 24 Dec 2016 21:55:09
Message-Id: 1482614219.ea9ead198ad6d9520ff421447174eb9e096a8edd.dolsen@gentoo
1 commit: ea9ead198ad6d9520ff421447174eb9e096a8edd
2 Author: Brian Dolbec <dolsen <AT> gentoo <DOT> org>
3 AuthorDate: Sat Dec 24 21:01:51 2016 +0000
4 Commit: Brian Dolbec <dolsen <AT> gentoo <DOT> org>
5 CommitDate: Sat Dec 24 21:16:59 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ea9ead19
7
8 dev-python/txgithub: Fix twisted dep, add python_test()
9
10 Package-Manager: Portage-2.3.3_p7, Repoman-2.3.1
11 Signed-off-by: Brian Dolbec <dolsen <AT> gentoo.org>
12
13 dev-python/txgithub/txgithub-15.0.0-r1.ebuild | 30 +++++++++++++++++++++++++++
14 1 file changed, 30 insertions(+)
15
16 diff --git a/dev-python/txgithub/txgithub-15.0.0-r1.ebuild b/dev-python/txgithub/txgithub-15.0.0-r1.ebuild
17 new file mode 100644
18 index 00000000..6462274
19 --- /dev/null
20 +++ b/dev-python/txgithub/txgithub-15.0.0-r1.ebuild
21 @@ -0,0 +1,30 @@
22 +# Copyright 1999-2016 Gentoo Foundation
23 +# Distributed under the terms of the GNU General Public License v2
24 +# $Id$
25 +
26 +EAPI=6
27 +PYTHON_COMPAT=( python2_7 )
28 +
29 +inherit eutils distutils-r1
30 +
31 +DESCRIPTION="GitHub API client implemented using Twisted"
32 +HOMEPAGE="https://github.com/tomprince/txgithub https://pypi.python.org/pypi/txgithub"
33 +SRC_URI="https://github.com/tomprince/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
34 +
35 +LICENSE="MIT"
36 +SLOT="0"
37 +KEYWORDS="~amd64"
38 +IUSE="test"
39 +
40 +RDEPEND="
41 + || ( >=dev-python/twisted-16.0.0[${PYTHON_USEDEP}]
42 + ( >=dev-python/twisted-core-12.3.0[${PYTHON_USEDEP}]
43 + >=dev-python/twisted-web-12.3.0[${PYTHON_USEDEP}] )
44 + )
45 + dev-python/pyopenssl[${PYTHON_USEDEP}]
46 +"
47 +DEPEND="${RDEPEND}"
48 +
49 +python_test() {
50 + PYTHONPATH="${S}/test:${BUILD_DIR}/lib" py.test -v || die "Tests failed under ${EPYTHON}"
51 +}