You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
44 lines
1003 B
44 lines
1003 B
1 year ago
|
# Copyright 1999-2023 Gentoo Authors
|
||
2 years ago
|
# Distributed under the terms of the GNU General Public License v2
|
||
|
|
||
2 years ago
|
EAPI="8"
|
||
1 year ago
|
PYTHON_COMPAT=( python3_{9..11} )
|
||
2 years ago
|
|
||
|
inherit distutils-r1
|
||
|
|
||
|
DESCRIPTION="Realtime PostgreSQL database server monitoring tool"
|
||
|
HOMEPAGE="https://github.com/dalibo/pg_activity"
|
||
|
SRC_URI="https://github.com/dalibo/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
||
|
KEYWORDS="~amd64"
|
||
|
SLOT="0"
|
||
|
LICENSE="POSTGRESQL"
|
||
|
|
||
|
RDEPEND="
|
||
|
dev-python/attrs[${PYTHON_USEDEP}]
|
||
|
dev-python/blessed[${PYTHON_USEDEP}]
|
||
|
dev-python/humanize[${PYTHON_USEDEP}]
|
||
|
dev-python/psutil[${PYTHON_USEDEP}]
|
||
|
dev-python/setuptools[${PYTHON_USEDEP}]
|
||
|
"
|
||
|
|
||
|
BDEPEND="
|
||
|
dev-python/attrs[${PYTHON_USEDEP}]
|
||
|
test? (
|
||
2 years ago
|
dev-python/psycopg:0[${PYTHON_USEDEP}]
|
||
2 years ago
|
dev-python/psycopg:2[${PYTHON_USEDEP}]
|
||
|
)
|
||
|
"
|
||
|
|
||
|
distutils_enable_tests pytest
|
||
|
|
||
|
python_test() {
|
||
|
# https://github.com/dalibo/pg_activity/issues/201
|
||
|
export COLUMNS="80"
|
||
|
epytest -k 'not test_ui.txt and not test_data.py'
|
||
|
}
|
||
|
|
||
|
src_install() {
|
||
|
distutils-r1_src_install
|
||
|
doman docs/man/${PN}.1
|
||
|
}
|