1 |
commit: 0cb9e0522de7ef51aaff3e8a5de17742b89376e0 |
2 |
Author: Manuel Rüger <mrueg <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Jan 5 12:44:15 2017 +0000 |
4 |
Commit: Manuel Rüger <mrueg <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Jan 5 12:45:17 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0cb9e052 |
7 |
|
8 |
dev-python/prometheus_client: Support twisted-web as well |
9 |
|
10 |
Package-Manager: Portage-2.3.3, Repoman-2.3.1 |
11 |
|
12 |
.../prometheus_client-0.0.18-r1.ebuild | 28 ++++++++++++++++++++++ |
13 |
1 file changed, 28 insertions(+) |
14 |
|
15 |
diff --git a/dev-python/prometheus_client/prometheus_client-0.0.18-r1.ebuild b/dev-python/prometheus_client/prometheus_client-0.0.18-r1.ebuild |
16 |
new file mode 100644 |
17 |
index 00000000..58681e0 |
18 |
--- /dev/null |
19 |
+++ b/dev-python/prometheus_client/prometheus_client-0.0.18-r1.ebuild |
20 |
@@ -0,0 +1,28 @@ |
21 |
+# Copyright 1999-2017 Gentoo Foundation |
22 |
+# Distributed under the terms of the GNU General Public License v2 |
23 |
+# $Id$ |
24 |
+ |
25 |
+EAPI=6 |
26 |
+ |
27 |
+PYTHON_COMPAT=( python{2_7,3_4,3_5} ) |
28 |
+inherit distutils-r1 |
29 |
+ |
30 |
+DESCRIPTION="Python client for the Prometheus monitoring system" |
31 |
+HOMEPAGE="https://pypi.python.org/pypi/prometheus_client" |
32 |
+SRC_URI="https://github.com/prometheus/client_python/archive/${PV}.tar.gz -> ${P}.tar.gz" |
33 |
+ |
34 |
+LICENSE="Apache-2.0" |
35 |
+SLOT="0" |
36 |
+KEYWORDS="~amd64" |
37 |
+IUSE="test" |
38 |
+ |
39 |
+S=${WORKDIR}/client_python-${PV} |
40 |
+ |
41 |
+RDEPEND="|| ( dev-python/twisted-web dev-python/twisted[${PYTHON_USEDEP}] )" |
42 |
+DEPEND="dev-python/setuptools[${PYTHON_USEDEP}] |
43 |
+ test? ( ${RDEPEND} |
44 |
+ dev-python/pytest[${PYTHON_USEDEP}] )" |
45 |
+ |
46 |
+python_test() { |
47 |
+ pytest || die |
48 |
+} |