Cut the eggplant into 2 cm cubes and fry them in hot oil. Once golden, drain them on paper towels.
In a blender, combine the basil, chopped tomatoes, chopped sun-dried tomatoes, peeled almonds, pine nuts, grated cheese, ricotta, and a drizzle of oil.
Blend thoroughly until you obtain a smooth and creamy mixture. Meanwhile, cook the pasta and drain it al dente. In a skillet, combine the eggplant and toss with the pasta.