According to upstream realease notes, this port should work just fine with Python 3. This port was restricted to Python 2.7 because its dependencies were lacking Python 3 support at that time (see https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=219322). We should test this port a bit and enable Python 3 if possible.
A commit references this bug: Author: 0mp Date: Tue Oct 13 21:59:24 UTC 2020 New revision: 552286 URL: https://svnweb.freebsd.org/changeset/ports/552286 Log: Give this port a bit more time to switch to Python 3 We just have to adjust the build process and do some tests, as Python 3 is supported according to upstream. PR: 250328 Changes: head/net/py-avahi/Makefile
Test-building net/py-avahi 0.7 with USES=python instead of USES=python:2.7 on a 12.2-amd64 poudriere jail.
(In reply to Rene Ladan from comment #2) Just with this change it fails to configure, claiming that it cannot find py-gdbm even though that is pre-installed as a dependency.
Closing this PR in favor of 250354. *** This bug has been marked as a duplicate of bug 250354 ***