commit: 0cb9e0522de7ef51aaff3e8a5de17742b89376e0
Author: Manuel Rüger <mrueg <AT> gentoo <DOT> org>
AuthorDate: Thu Jan 5 12:44:15 2017 +0000
Commit: Manuel Rüger <mrueg <AT> gentoo <DOT> org>
CommitDate: Thu Jan 5 12:45:17 2017 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0cb9e052
dev-python/prometheus_client: Support twisted-web as well
Package-Manager: Portage-2.3.3, Repoman-2.3.1
.../prometheus_client-0.0.18-r1.ebuild | 28 ++++++++++++++++++++++
1 file changed, 28 insertions(+)
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
new file mode 100644
index 00000000..58681e0
--- /dev/null
+++ b/dev-python/prometheus_client/prometheus_client-0.0.18-r1.ebuild
@@ -0,0 +1,28 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=6
+
+PYTHON_COMPAT=( python{2_7,3_4,3_5} )
+inherit distutils-r1
+
+DESCRIPTION="Python client for the Prometheus monitoring system"
+HOMEPAGE="https://pypi.python.org/pypi/prometheus_client"
+SRC_URI="https://github.com/prometheus/client_python/archive/${PV}.tar.gz ->
${P}.tar.gz"
+
+LICENSE="Apache-2.0"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE="test"
+
+S=${WORKDIR}/client_python-${PV}
+
+RDEPEND="|| ( dev-python/twisted-web dev-python/twisted[${PYTHON_USEDEP}] )"
+DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]
+ test? ( ${RDEPEND}
+ dev-python/pytest[${PYTHON_USEDEP}] )"
+
+python_test() {
+ pytest || die
+}