Sphinx 1.2 doesn't work, but the current development version (1.3a0dev-20140110) does. Clone their source code and install from it:
hg clone https://bitbucket.org/birkenfeld/sphinx
cd sphinx
pip install -e .
Packages from PyPI:
pip install matplotlib