An eclipsing post-common-envelope binary in the field of the Kepler mission