From a Turkic language, ultimately from Persian خربز. Compare Azerbaijani qarpız.
къарпуз • (q̄arpuz)