diff options
author | V3n3RiX <venerix@koprulu.sector> | 2023-07-06 16:14:21 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2023-07-06 16:14:21 +0100 |
commit | 5c92379e3a6732ff2855a56c60576983ae42e288 (patch) | |
tree | cfc3b84baaef518de09d10b5305a3f4abbc16dd7 /dev-db/pg_activity/pg_activity-3.4.2.ebuild | |
parent | 8e3281f71945b4cccca5a44f2f467f3bff4ac45c (diff) |
gentoo auto-resync : 06:07:2023 - 16:14:21
Diffstat (limited to 'dev-db/pg_activity/pg_activity-3.4.2.ebuild')
-rw-r--r-- | dev-db/pg_activity/pg_activity-3.4.2.ebuild | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/dev-db/pg_activity/pg_activity-3.4.2.ebuild b/dev-db/pg_activity/pg_activity-3.4.2.ebuild new file mode 100644 index 000000000000..bb4c7b32493d --- /dev/null +++ b/dev-db/pg_activity/pg_activity-3.4.2.ebuild @@ -0,0 +1,45 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{9..11} ) + +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? ( + dev-python/psycopg:0[${PYTHON_USEDEP}] + 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 +} |