summaryrefslogtreecommitdiff
path: root/community/pg_activity/APKBUILD
blob: 5fceace8113b564e8cfcb49fe2cac23981c0c2f8 (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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Contributor: Jakub Jirutka <jakub@jirutka.cz>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=pg_activity
pkgver=3.0.1
pkgrel=1
pkgdesc="A top like application for PostgreSQL server activity monitoring"
url="https://github.com/dalibo/pg_activity"
arch="noarch"
license="PostgreSQL"
depends="
	py3-attrs
	py3-blessed
	py3-humanize
	py3-psutil
	py3-psycopg2
	python3
	"
makedepends="py3-setuptools"
checkdepends="
	py3-psycopg
	py3-pytest
	"
provides="py3-pg_activity=$pkgver-r$pkgrel"
subpackages="$pkgname-doc"
source="https://github.com/dalibo/pg_activity/archive/v$pkgver/pg_activity-$pkgver.tar.gz"

build() {
	python3 setup.py build
}

check() {
	# test_ui and test_data requires pytest-postgresql and running PostgreSQL.
	pytest \
		--ignore=tests/test_ui.txt \
		--ignore=tests/test_data.py
}

package() {
	python3 setup.py install --skip-build --root="$pkgdir"
}

sha512sums="
2a57d26090d862731b62494231005fdb13c7a132f7425a74f57c57dc004e4da61e39342d86386df4a08e5780c1f0fc170ccf962faa0872799586129e96743e30  pg_activity-3.0.1.tar.gz
"