Upstream has switched from milksnake to maturin, and dropped the mock test dependency. Adds Python 3.11 support.