summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 0c28ad0e1c1bc7c9e102755ede3cf0a0d2fac06a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# Maintainer: Roshless <pkg@roshless.com>

pkgname=python-django-prometheus
_name=${pkgname#python-}
pkgver=2.1.0
pkgrel=4
pkgdesc='Export Django monitoring metrics for Prometheus.io'
url='https://github.com/korfuri/django-prometheus'
arch=('any')
license=('Apache')
depends=('python-django'
	 'python-prometheus_client')
makedepends=('python-setuptools' 'python-pip')
optdepends=('python-psycopg2: PostgreSQL database monitoring'
	    'python-mysqlclient: MySQL database monitoring'
	    'python-memcached: memcached monitoring'
	    'python-django-redis: redis monitoring')
source=("https://files.pythonhosted.org/packages/source/${_name::1}/$_name/$_name-$pkgver.tar.gz")

build() {
  cd $_name-$pkgver
  python setup.py build
}

package() {
  cd $_name-$pkgver
  python setup.py install --prefix=/usr --root="$pkgdir" --optimize=1
}

md5sums=('088d85f344de189989748cd790918ebc')