xoak does not work in python 3.12 because pkg_resources is deprecated. I have submitted a pull request https://github.com/xarray-contrib/xoak/pull/45 to address this issue.