A druid can certainly cast magic fang on themselves, now that it doesn't specify "ally."
But if you then wild shape you'll lose the benefit, because it's attached to a specific unarmed attack of the form you had when you received the spell, and you won't have that particular attack any more.