7-Eleven, the US unit of Japanese retailer Seven & I, has entered into an agreement to purchase Buffalo-based convenience chain Wilson Farms.