I've had alot of trouble with my liquidcooling setup in the past, and this will be my 4th iteration. Best one yet mind you. I've made a more solid version of my earlier pump, though not 3D printed because my printer is currently out of commission.
This bracket can either be 3D printed, or made out of thin metal, which I'll be doing. The bottom bar supports the weight downwards preventing slippage. Use a zip-tie or some light baling wire to hold it in place on the bracket. Use some screws to attach it to w/e it's getting mounted to.
Pretty basic.