We have not encountered a pump that looks like that. I did some research last night and learned that the 2005 Cobalts used that pump.
The pumps we've used have a 4 pin connector built into the top and no wires. Yours also has what appears to be a pressure sensor on the top.
We aren't sure if the 05 pump will work with your 07 donor equipment. If you hook up the pump without the sensor, I'm not sure what the pump will do. In the 05, the computer might use the info from that sensor to regulate the pump. On the other hand, that sensor may only report pressure changes to the computer for fuel trim adjustments and the pump regulates itself like the later model pumps. The pump could also output a different pressure than the 07 PZEV or the other non-NU6 pumps.
I think you need to get a later model non-NU6 pump that has no wires coming out of it. You'll also want to get the plug and a short length of the pigtail that goes to the pump to solder to the wires coming from your car.