Compounds of Formula I that inhibit Btk are described herein. Pharmaceutical compositions comprising at least one compound of Formula I, together with at least one pharmaceutically acceptable vehicle chosen from carriers, adjuvants, and excipients, are described. Methods of treating patients suffering from certain diseases responsive to inhibition of Btk activity and/ or B-cell activity are described. Methods for determining the presence of Btk in a sample are described.