In a large pot, add the olive oil on a medium-high heat. Add the onion and garlic, then cook for 5-7 minutes.
Add in the ground beef and brown until meat has been thoroughly cooked through, about 5 minutes. Season with salt and pepper.
Pour in the tomato sauce, pumpkin puree, and seasoning, including the fresh basil. Stir to mix well. Pour the stock in the pot as well.
Let mixture simmer on slow, uncovered, for 1 or more hours (the longer the better, but minimum 1 hour), stirring occasionally.
Bring a large pot of salted water to a boil and cook the pasta to al dente, according to package instructions. Serve the sauce hot over fresh pasta.