An atomic spectrum recorded with a single-molecule light source