i.e., we depend on packages of the asynchat and asyncore libs that were added to pypi for this kind of purpose - https://pypi.org/project/pyasynchat/ and https://pypi.org/project/pyasyncore/ - and we also had to disable a couple of tests. I don't know if Ubuntu/Debian packaged the split-out asynchat and asyncore libs yet.
FWIW, this is what we did in Fedora: https:/ /src.fedoraproj ect.org/ rpms/fail2ban/ c/24c973f252f6d 1b4231ee49ee4d5 efac785a2fe8? branch= rawhide
i.e., we depend on packages of the asynchat and asyncore libs that were added to pypi for this kind of purpose - https:/ /pypi.org/ project/ pyasynchat/ and https:/ /pypi.org/ project/ pyasyncore/ - and we also had to disable a couple of tests. I don't know if Ubuntu/Debian packaged the split-out asynchat and asyncore libs yet.