Inside dimensions of the box without the radius: 53mm x 33mm x 30mm
Just use a piece of filament to attach the hinge and latch. The filament needs to be about 2 mm longer on every side. Then use a lighter and make it warm and push it flat.
Thank you for the idea @Fearless :)