Although spacecrafts can’t store fresh tomatoes and dough for extended periods of time, they can store powder to be mixed into pizza ingredients  and a 3D printer could run with that powder to create an edible pizza.