They require only grass blocks with air above (clear of any plants such as flowers or grass), and can generate regardless whether that grass block has a layer of snow cover. Pumpkins naturally generate with the terrain in most biomes in the Overworld, in the form of random patches.