Place nuts into a powerful blender or food processor. Pulse several times until they are broken up into smaller pieces. (Don't over-process, or you'll end up with nut butter!)
Add the remaining ingredients to the blender. Push the basil leaves into the olive oil.
Pulse intermittently, scraping sides occasionally with a spatula, until the desired consistency is reached.