I feel like there's a small tautology here- who is most likely to name the software package after themselves? A narcissist, of course, and narcissism is a component of sociopathy.
So you also think Linus Torvalds is a narcissist ? And every people who name their project or company after their names are potential sociopaths ? What about all scientists who gave their names to the effects or law of physics (or math formulas) they discovered... ?
Linus didn't name Linux after himself, another person who distributed it named it after him.
Scientists also generally don't name their discoveries after themselves. The honor of getting someone named after yourself is something that your colleagues are supposed to bestow in recognition of achievements - sometimes long after the person in question is long dead.
That seems like overthinking things. I've named things after myself (and also other people), and I'm neither a narcissist nor sociopath. It just sounded nice.