What is the criteria for a pope to be canonized as saint?

It is the same as for anyone - they must have lived a life of heroic virtue and had at least 2 proven miracles.