I've seen Flex lines in marine grade steel mesh covered 25" and 31" lengths that are made for just this purpose.
In a jam you could always make two nipples out of a 10" rigid piece of fuel line. Just get a tubing cutter and cut each end to length (about 3" or so). Attach one nipple to the carb, and the other to the fuel pump. Use rubber 3/8" marine fuel line in between the two nipples you made, and double clamp each end to the nipples with stainless steel hose clamps.
I just had to make a piece up to go between my fuel pump and fuel filter. The ready made flex lines were way too long for the spot I needed to put them in. I ordered the replacement pre bent rigid line, but didn't want to not be able to use the boat while I'm waiting for it to arrive.
The set up with the nipples, rubber line and stainless clamps will last for years if I needed it to, but I'll still replace it with the pre bent rigid when it gets here next week because it's available. If it wasn't available I wouldn't hesitate to leave the set up on there forever.
You can get the rigid fuel line at any good auto parts store. It comes in different lengths. It's too thick to safely bend much though. 10" is usually about the shortest they sell it, and all you need. The fittings on each end will be flare type and will thread right in to the carb and pump.
You can get the stainless steel hose clamps at ACE Hardware, or any good hardware store. The marine fuel line can usually be had by the foot at a marine supply store.
FYI - The fuel lines going in to the Quadrajets are easy to twist up when removing or installing them. Sometimes there is just no avoiding it. I have a very thin Snap-On 1" open end wrench that I use to hold the internal fuel filter housing in tight with while I back the fuel line out of it. I usually soak the line really well with PB blaster before I try to back it out.