smarty (n.)

"would-be witty or clever person," 1854, from smart (n.) + -y (3). Extended form smarty-pants first attested 1939.