Peel a squash, grate it and squeeze the juice.
Put the butter in a large saucepan over which you heat the pumpkin with the sugar and let it simmer for 10-15 minutes or until the pumpkin has softened.
For the dough put all the ingredients (except the flour) in a bowl.
Mix with a fork or a fork and then add the flour gradually until you get a soft dough that does not stick to your hand, knead until it becomes elastic. Divide the dough in half and spread two sheets about 2-3 mm thick (I made the sheet for the base a little bigger to cover the walls of the tray)
Wallpaper a heat-resistant tray with butter and a little flour, place the larger sheet covering the walls of the tray, then pour the cooled pumpkin.
Place the second sheet by piercing it from place to place with the tip of a knife then grease with a little beaten egg or a little milk.
Put in the hot oven at 180C / 350F / gas 4 for 40 minutes or until the pie is browned. Remove the pie from the oven, leave to cool and cut into pieces of the desired size.
I cut when it was quite warm because I had a house full of cravings :)
Delicious warm and cold.