Whiny derives from English whine plus the suffix -y, from Middle English -y, from Middle French -ie, from Latin -ia, ultimately from Proto-Indo-European -kos.
whiny (English): whining; tending to whine or complain