diff options
author | 2024-03-14 04:26:44 +0000 | |
---|---|---|
committer | 2024-03-14 04:51:37 +0000 | |
commit | f0f6688522dd2809feccb3d691db98364b0919f0 (patch) | |
tree | 4e5ef9ff1f316522bcbd86f1024c365c389bdbed /net-analyzer/fail2ban/fail2ban-9999.ebuild | |
parent | dev-python/aiosmtpd: new package, add 1.4.5 (diff) | |
download | gentoo-f0f6688522dd2809feccb3d691db98364b0919f0.tar.gz gentoo-f0f6688522dd2809feccb3d691db98364b0919f0.tar.bz2 gentoo-f0f6688522dd2809feccb3d691db98364b0919f0.zip |
net-analyzer/fail2ban: enable py3.12
Bug: https://bugs.gentoo.org/909998
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'net-analyzer/fail2ban/fail2ban-9999.ebuild')
-rw-r--r-- | net-analyzer/fail2ban/fail2ban-9999.ebuild | 21 |
1 files changed, 17 insertions, 4 deletions
diff --git a/net-analyzer/fail2ban/fail2ban-9999.ebuild b/net-analyzer/fail2ban/fail2ban-9999.ebuild index d9a3b9fdb4da..f9f5b8721fff 100644 --- a/net-analyzer/fail2ban/fail2ban-9999.ebuild +++ b/net-analyzer/fail2ban/fail2ban-9999.ebuild @@ -1,10 +1,10 @@ -# Copyright 1999-2023 Gentoo Authors +# Copyright 1999-2024 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 DISTUTILS_SINGLE_IMPL=1 -PYTHON_COMPAT=( python3_{10..11} ) +PYTHON_COMPAT=( python3_{10..12} ) inherit bash-completion-r1 distutils-r1 systemd tmpfiles @@ -16,14 +16,19 @@ if [[ ${PV} == *9999 ]] ; then inherit git-r3 else SRC_URI="https://github.com/fail2ban/fail2ban/archive/${PV}.tar.gz -> ${P}.tar.gz" - KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~ppc ~ppc64 ~riscv ~sparc ~x86" + KEYWORDS="~amd64" fi LICENSE="GPL-2" SLOT="0" -IUSE="selinux systemd" +IUSE="selinux systemd test" +RESTRICT="!test? ( test )" RDEPEND=" + $(python_gen_cond_dep ' + dev-python/pyasyncore[${PYTHON_USEDEP}] + dev-python/pyasynchat[${PYTHON_USEDEP}] + ' 3.12) virtual/logger virtual/mta selinux? ( sec-policy/selinux-fail2ban ) @@ -33,6 +38,13 @@ RDEPEND=" ') ) " +BDEPEND=" + test? ( + $(python_gen_cond_dep ' + dev-python/aiosmtpd[${PYTHON_USEDEP}] + ') + ) +" DOCS=( ChangeLog DEVELOP README.md THANKS TODO doc/run-rootless.txt ) @@ -51,6 +63,7 @@ python_prepare_all() { python_test() { # Skip testRepairDb for bug #907348 (didn't always fail..) + # https://github.com/fail2ban/fail2ban/issues/3586 bin/fail2ban-testcases \ --no-network \ --ignore databasetestcase.DatabaseTest.testRepairDb \ |