The Boltzmann equation for weakly inhomogeneous data