Shear flow and viscosity in single-layer hydraulics