Peristaltic pump for chemical dosing and transfer