Mill two halves, then screw them together with the electronics inside?
File/Sand/Plane down a block for the top, hollow out the interior and close off the hollow with a thin balsa sheet?
The way I made propellers - with a craft knife, cut the wafer thin sheets sold by model airplane stores with successive concentric overlapping ovals for each 1mm height of the enclosure. Glue them all together and sand it down smooth.