Fry onion and garlic in olive oil. After a minute, add shrimp, salt and spices. Fry, stirring, for 3-4 minutes. Transfer the finished shrimp to another container.
Cook the pasta in salted water until al dente, drain and reserve 50 ml of the cooking liquid.
Fry the vegetable mixture and broccoli over high heat for 5 minutes.
Add wine and shrimp to vegetables and simmer until wine has completely evaporated, about 2 minutes.
Add lemon juice, broth, spaghetti and mix well.