601278 Disclosed are pyrazolo-pyrimidin derivatives of formula (D) that form covalent bonds with Bruton's tyrosine kinase (Btk), wherein the variables shown in the structure of formula (D) are as defined in the specification. Also described are irreversible inhibitors of Btk; methods for the preparation of these compounds; and pharmaceutical compositions that include the compounds. These Btk inhibitors are suitable for the treatment of autoimmune diseases or conditions, heteroimmune diseases or conditions, cancer, including lymphoma, and inflammatory diseases or conditions. Examples of compounds of formula (D) are: 1-(3-(4-amino-3-(4-phenoxyphenyl)-1H-pyrazolo[3,4-d]pyrimidin-1-yl)piperidin-1-yl)prop-2-yn-1-one; N-((1s,4s)-4-(4-amino-3-(4-phenoxyphenyl)-1Hpyrazolo[3,4-d]pyrimidin-1-yl)cyclohexyl)propiolamide; 1-(3-(4-amino-3-(4-phenoxyphenyl)-1H-pyrazolo[3,4-d]pyrimidin-1-yl)pyrrolidin-1-yl)prop-2-yn-1-one;