Given following log snippets, their explanation, and nothing else, explain what failure, if any, occurred during build of this package.

  Snippets are in a format of [X] : [Y], where [X] is a log snippet, and [Y] is the explanation.

  Snippets are delimited with '================'.

  Drawing on information from all snippets, provide a concise explanation of the issue and recommend a solution.

  Explanation of the issue, and recommended solution, should take a handful of sentences.

  Snippets:

  [Traceback (most recent call last):
  File "/usr/lib/python3.13/site-packages/twisted/trial/runner.py", line 711, in loadByName
    return self.suiteFactory([self.findByName(name, recurse=recurse)])
  File "/usr/lib/python3.13/site-packages/twisted/trial/runner.py", line 474, in findByName
    obj = reflect.namedModule(searchName)
  File "/usr/lib/python3.13/site-packages/twisted/python/reflect.py", line 156, in namedModule
    topLevel = __import__(name)
  File "/builddir/build/BUILD/matrix-synapse-1.115.0-build/synapse-1.115.0/tests/api/test_auth.py", line 39, in <module>
    from synapse.server import HomeServer
  File "/builddir/build/BUILD/matrix-synapse-1.115.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/synapse/server.py", line 55, in <module>
    from synapse.federation.federation_client import FederationClient
  File "/builddir/build/BUILD/matrix-synapse-1.115.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/synapse/federation/federation_client.py", line 72, in <module>
    from synapse.federation.transport.client import SendJoinResponse
  File "/builddir/build/BUILD/matrix-synapse-1.115.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/synapse/federation/transport/client.py", line 55, in <module>
    from synapse.http.matrixfederationclient import ByteParser, LegacyJsonSendParser
  File "/builddir/build/BUILD/matrix-synapse-1.115.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/synapse/http/matrixfederationclient.py", line 22, in <module>
    import cgi
builtins.ModuleNotFoundError: No module named 'cgi']: [The first exception thrown while running tests.]

Issue: The used module 'cgi' could not be imported, because it was removed in Python 3.13.
Resolution: Report the issue or submit a merge request upstream.