A thermoelectric generator with a radioactive source would get pretty close.
You can pretty much seal up everything else (encased in a solid glass cube, e.g.). You may want an inert out-gassing source internally, but that would probably only last a few millennia.