CubeSat gamma-ray spectrometer prototype