dev-python/django-prometheus: new package, add 2.2.0

This commit is contained in:
Alarig Le Lay 2023-01-31 00:53:45 +01:00
parent 8bc1aa9fc4
commit ae2feaefad
Signed by: alarig
GPG Key ID: 7AFE62C6DF8BCDEC
3 changed files with 41 additions and 0 deletions

View File

@ -0,0 +1 @@
DIST django-prometheus-2.2.0.tar.gz 24995 BLAKE2B db79cbed99d4d5cb7d9ce22dfee69914a63373417b176b4311406f9a1fdcada16447d6ec8cb19ebd14789f520aa1d5755aace824e5462611f81a0cc688566f19 SHA512 a72c8345f220799ad0709e0e73912229267b5e01fc67ae7f647e53ccf7c7e170ad2456c81070a002dc411e840b1129d55719a7aa891b4dabe262837c8c7b3db5

View File

@ -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
}

View File

@ -0,0 +1,13 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="project">
<email>python@gentoo.org</email>
<name>Python</name>
</maintainer>
<stabilize-allarches/>
<upstream>
<remote-id type="pypi">django-prometheus</remote-id>
<remote-id type="github">korfuri/django-prometheus</remote-id>
</upstream>
</pkgmetadata>