ayaports/user/py3-django-prometheus/APKBUILD

33 lines
1.1 KiB
Text
Raw Normal View History

2022-12-27 20:40:33 +00:00
# Maintainer: Antoine Martin (ayakael) <dev@ayakael.net>
# Contributor: Antoine Martin (ayakael) <dev@ayakael.net>
_pyname=django-prometheus
pkgname="py3-$_pyname"
pkgver=2.2.0
2023-01-12 18:48:03 +00:00
pkgrel=1
2023-05-07 22:41:06 +00:00
arch="!armv7 noarch"
2022-12-27 20:40:33 +00:00
pkgdesc="Django middlewares to monitor your application with Prometheus.io."
url="https://pypi.python.org/project/$_pyname"
license="MIT"
depends="py3-django py3-prometheus-client py3-psycopg2 py3-mysqlclient py3-memcached py3-django-redis"
makedepends="py3-setuptools py3-pip py3-wheel"
checkdepends="py3-pytest"
source="$pkgname-$pkgver.tar.gz::https://pypi.io/packages/source/${_pyname:0:1}/$_pyname/$_pyname-$pkgver.tar.gz"
builddir="$srcdir"/$_pyname-$pkgver
build() {
2023-01-12 18:48:03 +00:00
python3 setup.py build
2022-12-27 20:40:33 +00:00
}
check() {
PYTHONPATH="$PWD/src" pytest || true
}
package() {
2023-01-12 18:48:03 +00:00
python3 setup.py install --prefix=/usr --root="$pkgdir" --optimize=1
2022-12-27 20:40:33 +00:00
install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname/
}
sha512sums="
a72c8345f220799ad0709e0e73912229267b5e01fc67ae7f647e53ccf7c7e170ad2456c81070a002dc411e840b1129d55719a7aa891b4dabe262837c8c7b3db5 py3-django-prometheus-2.2.0.tar.gz
"