From: Manuel RĂ¼ger Date: Thu, 5 Jan 2017 12:44:15 +0000 (+0100) Subject: dev-python/prometheus_client: Support twisted-web as well X-Git-Url: http://git.tremily.us/gitweb.cgi?a=commitdiff_plain;h=0cb9e0522de7ef51aaff3e8a5de17742b89376e0;p=gentoo.git dev-python/prometheus_client: Support twisted-web as well Package-Manager: Portage-2.3.3, Repoman-2.3.1 --- 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 000000000000..58681e0e90e9 --- /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 +}