@reereen why not just rig it and see for yourself? Has the age of CG self-experimentation died........? Also, not a modeling problem as per the thread.
Pretty much. half sphere with a flat top. modeled the box close to the sphere. cut a hole in the sphere for the connection, connected and cleaned the mesh.