New comment by dkwo on void-packages repository https://github.com/void-linux/void-packages/pull/48297#issuecomment-1902139419 Comment: This badly needs a release upstream, but for now this passes tests for me (mostly taken from Fedora). cc @ahesford ``` @@ -1,10 +1,11 @@ # Template file for 'fail2ban' pkgname=fail2ban version=1.0.2 -revision=3 +revision=4 build_style=python3-module hostmakedepends="pkg-config python3-setuptools" -depends="python3-pyasynchat" +depends="python3-pyasynchat python3-pyasyncore" +checkdepends="python3-utils ${depends}" short_desc="Authentication failure monitor system" maintainer="Orphaned " license="GPL-2.0-only" @@ -23,6 +24,16 @@ pre_build() { ./fail2ban-2to3 } +do_check() { + # this test uses smtpd which is removed in Python 3.12 + # https://github.com/fail2ban/fail2ban/issues/3487 + rm -f fail2ban/tests/action_d/test_smtp.py + + # testRepairDb does not work with sqlite 3.42.0+ + # https://github.com/fail2ban/fail2ban/issues/3586 + python3 bin/fail2ban-testcases -i testRepairDb +} + post_install() { rm -rf ${DESTDIR}/${py3_sitelib}/fail2ban/tests vsv fail2ban ```