Preheat oven to 180°C. Place pumpkin on an oven tray, drizzle with 2 tbsp of oil, scatter with thyme leaves, season with sea salt and toss to combine. Roast for 25-30 minutes or until browned.
Drain the feta. Cut into small pieces. Leave at room temperature.
In a pot of boiling salted water, cook pasta until al dente, about 10 minutes. Drain well, but reserve a little of the pasta water. Put the drained pasta back into the pot to keep warm.
Heat the remaining oil in a frying pan over a low heat; add the onion and garlic and a pinch of salt. Cook until the onion is soft, about 10 minutes, then add the white wine and simmer for about 30 seconds.
Add the pumpkin, spinach and pine nuts to the pan and season with sea salt and black pepper. Drizzle in a little of the pasta water to help the flavours come together. Cook until spinach is just wilted.
Add pumpkin mixture to the pot of pasta, along with the feta. Stir everything through, then serve immediately.