dev-python/prometheus_client: Support twisted-web as well
authorManuel Rüger <mrueg@gentoo.org>
Thu, 5 Jan 2017 12:44:15 +0000 (13:44 +0100)
committerManuel Rüger <mrueg@gentoo.org>
Thu, 5 Jan 2017 12:45:17 +0000 (13:45 +0100)
Package-Manager: Portage-2.3.3, Repoman-2.3.1

dev-python/prometheus_client/prometheus_client-0.0.18-r1.ebuild [new file with mode: 0644]

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 (file)
index 0000000..58681e0
--- /dev/null
@@ -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
+}