Peel and chop the onion. Sweat in heated olive oil. Add the tomatoes, the chopped apple and the chickpeas and sauté briefly. Mix the water and flour so that there are no more lumps and add to the pan to thicken. Add the peanut butter and let it boil briefly. Add the cinnamon and the spices, season with salt and pepper and serve immediately.