Simmer the tomatoes with a little water and a dash of balsamic vinegar until soft (approx. 30 minutes). In the meantime, chop the pine and cashew nuts, chop the basil and grate the parmesan.
Puree the soft tomatoes with the garlic (pour off the water beforehand) and then mix in all the ingredients. The finished pesto e.g., in hot rinsed honey jars. Store in the refrigerator (lasts at least two weeks - with us only a few days).