1 # Copyright 1999-2019 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
5 PYTHON_COMPAT=( python3_{5,6} )
9 DESCRIPTION="Provides HTTP request metrics to export into Prometheus"
10 HOMEPAGE="https://pypi.python.org/pypi/prometheus-flask-exporter https://github.com/rycus86/prometheus_flask_exporter"
11 SRC_URI="https://github.com/rycus86/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
17 RESTRICT="!test? ( test )"
20 dev-python/flask[${PYTHON_USEDEP}]
21 dev-python/prometheus_client[${PYTHON_USEDEP}]
24 dev-python/setuptools[${PYTHON_USEDEP}]
27 dev-python/pytest[${PYTHON_USEDEP}]
32 pytest -vv || die "Tests failed with ${EPYTHON}"