textproc/py-sphinx-autoapi: Fix astroid2 dependency
This patch changes to astroid2 as a dependency to limit the version < 3
of astroid.
A direct upgrade to textproc/py-sphinx-autoapi v3 is not possible
since we are missing the needed py-sphinx v6 dependency in the ports
tree.
PR: 277361
Approved by: submitter is maintainer