Yeah maybe do a binder clip or paper clip and hook it to your pant loop? Or those things you can loop your headphones in and snap shut?
Edit: like this
My sites are often on my arms so my pump is clipped to my bra but it’s not comfy to sleep with it there.