An end to the conflict with Lebanon has sparked hopes that a similar deal can be reached between Israel and Hamas