Cronyism is similar to nepotism, but it applies to friends and prior associates rather than exclusively to family.
Governments are particularly susceptible to accusations of cronyism as they spend public money. This is why democratic governments are encouraged to have transparency in their accounting and contracting processes.