As a child/teenager I read a story or a small book about an extraplanetary base. I probably read it in the second half of the '90s, but the story could be older. I think I remember the following:
A man and a woman live there. He is a scientist. They have robots that help them or do the work. They assemble these robots (from prefabricated parts?). At some point the robots decide that they don't need humans anymore, because they can assemble themselves and are evolutionary anyway, because they don't need sleep.