For most of its Latin life, nepos did not mean nephew. It meant grandson, or more broadly a male descendant. Etymonline says the "nephew" sense appears only in post-Augustan Latin, around 150 AD.

The root is very old. Etymonline reconstructs an Indo-European nepot-, "grandchild," and lists relatives across the family: Sanskrit napat, Dutch neef, German Neffe, Welsh nei. Old English had its own version, nefa, which could mean nephew, stepson, grandson or even second cousin. It lasted into the 1500s.

The Latin word had stranger senses too. The Oxford English Dictionary, as quoted on the Languagehat blog, lists "a secondary shoot" of a plant and "a prodigal," a spendthrift, among the meanings of nepos.

English took the word from Old French neveu around 1300 and first said it with a v. After about 1400, scribes began writing it with ph, a spelling Etymonline calls unetymological. Languagehat cites a -p- form from about 1456 in the Paston letters. The OED records more than a hundred spellings in all. The v pronunciation hung on in Britain for centuries, but surveys in the 1990s found most younger British speakers had switched to f.

The meaning also took time to settle. English used nephew for grandsons too until the 17th century, when it narrowed to a brother's or sister's son.

The most famous nephews were papal ones. From the 1580s nephew served as a polite name for a clergyman's illegitimate son, and Renaissance popes gave offices and red hats to their "nephews." Italian called the practice nepotismo, which English borrowed as nepotism in the 1660s. In 1692 Pope Innocent XII's bull Romanum decet pontificem abolished the office of cardinal-nephew. It also limited each future pope to making one relative a cardinal.