just a guess:
from the pump, half-inch hose.
Then from half inch hose to a hose-tail connector like this:
With the threaded part sticking through a hole cut in the box.
The the black "tap" connector that you can see, (which actually looks something like this:
simply screwed onto the hosetail thread that's sticking through the hole, nice and tight so it doesn't wiggle around. Those tap connectors have a rubber gasket on the inside face, so when something is screwed into them it forms a nice watertight seal.
As I said, that's just a guess how it could be done.