The function `package-desc-p` only exists in Emacs trunk.