From ae2feaefadd401ba993e0b7559fcbf1a097f2be0 Mon Sep 17 00:00:00 2001 From: Alarig Le Lay Date: Tue, 31 Jan 2023 00:53:45 +0100 Subject: [PATCH] dev-python/django-prometheus: new package, add 2.2.0 --- dev-python/django-prometheus/Manifest | 1 + .../django-prometheus-2.2.0.ebuild | 27 +++++++++++++++++++ dev-python/django-prometheus/metadata.xml | 13 +++++++++ 3 files changed, 41 insertions(+) create mode 100644 dev-python/django-prometheus/Manifest create mode 100644 dev-python/django-prometheus/django-prometheus-2.2.0.ebuild create mode 100644 dev-python/django-prometheus/metadata.xml diff --git a/dev-python/django-prometheus/Manifest b/dev-python/django-prometheus/Manifest new file mode 100644 index 0000000..6e51586 --- /dev/null +++ b/dev-python/django-prometheus/Manifest @@ -0,0 +1 @@ +DIST django-prometheus-2.2.0.tar.gz 24995 BLAKE2B db79cbed99d4d5cb7d9ce22dfee69914a63373417b176b4311406f9a1fdcada16447d6ec8cb19ebd14789f520aa1d5755aace824e5462611f81a0cc688566f19 SHA512 a72c8345f220799ad0709e0e73912229267b5e01fc67ae7f647e53ccf7c7e170ad2456c81070a002dc411e840b1129d55719a7aa891b4dabe262837c8c7b3db5 diff --git a/dev-python/django-prometheus/django-prometheus-2.2.0.ebuild b/dev-python/django-prometheus/django-prometheus-2.2.0.ebuild new file mode 100644 index 0000000..925b578 --- /dev/null +++ b/dev-python/django-prometheus/django-prometheus-2.2.0.ebuild @@ -0,0 +1,27 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{9..11} ) +inherit distutils-r1 + +DESCRIPTION="Library to export Django metrics for Prometheus" +HOMEPAGE="https://github.com/korfuri/django-prometheus" +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" + +LICENSE="Apache-1.0" +SLOT="0" +KEYWORDS="~amd64" + +RDEPEND=" + dev-python/django[${PYTHON_USEDEP}] + >=dev-python/prometheus_client-0.7[${PYTHON_USEDEP}] +" + +distutils_enable_tests pytest + +python_prepare_all() { + sed -i "/pytest-runner/d" setup.py || die + distutils-r1_python_prepare_all +} diff --git a/dev-python/django-prometheus/metadata.xml b/dev-python/django-prometheus/metadata.xml new file mode 100644 index 0000000..46f5d09 --- /dev/null +++ b/dev-python/django-prometheus/metadata.xml @@ -0,0 +1,13 @@ + + + + + python@gentoo.org + Python + + + + django-prometheus + korfuri/django-prometheus + +