I have the feeling that overrideAttrs does not work as expected for complex packaging which use intermediate functions as in pythonBuildPackage or buildGoModule (as seen in "inconsistent vendoring" in buildGoModule when overriding source - #3 by jshholland)
There is something difficult to understand as a newbie as some attributes can be overriden and some others cannot.