Provided are pyrazolylaminopurine compounds that are inhibitors of ITK kinase, compositions containing these compounds and methods for treating diseases mediated by ITK kinase. In particular, provided are compounds of Formula I or II, stereoisomers, tautomers, solvates, prodrugs or pharmaceutically acceptable salts thereof, where n, R1, R2, R3, R4, R5, R6 and R7 are defined herein, pharmaceutical compositions comprising the compound and a pharmaceutically acceptable carrier, methods of using the compound or composition in therapy, for example, for treating a disease or condition mediated by ITK kinase in a patient.La présente invention concerne des composés pyrazolylaminopyridine qui sont des inhibiteurs de la tyrosyne kinase ITK, des compositions contenant ces composés et des procédés pour le traitement de maladies médiées par la tyrosyne kinase ITK. En particulier, l'invention concerne des composés de formule (I) ou (II), leurs stéréoisomères, tautomères, solvates, promédicaments ou sels pharmaceutiquement acceptables; n, R1, R2, R3, R4, R5, R6 et R7 étant tels que définis dans la description, des compositions pharmaceutiques comprenant le composé et un excipient pharmaceutiquement acceptable, des procédés d'utilisation dudit composé ou de ladite composition en thérapie, par exemple pour le traitement d'une maladie ou d'un trouble médié(e) par la tyrosyne kinase ITK chez un patient.