Mock out external packages from Sphinx builds

Allow Sphinx documentation to be built even if the external dependencies
are not installed. Required to support Read The Docs.