Nonreciprocal and chiral single-photon scattering for giant atoms