On nonlocal fluid mechanics