Diseases caused by the apicomplexan protozoans Toxoplasma gondii and Cryptosporidium parvum are a major health concern. The life cycle of these parasites is regulated by a family of calcium-dependent protein kinases (CDPKs) that have no direct homologues in the human host. Fortuitously, CDPK1 from both parasites contains a rare glycine gatekeeper residue adjacent to the ATP-binding pocket. This has allowed creation of a series of C3-substituted pyrazolopyrimidine compounds that are potent inhibitors selective for CDPK1 over a panel of human kinases. Here we demonstrate that selectivity is further enhanced by modification of the scaffold at the C1 position. The explanation for this unexpected result is provided by crystal structures of the inhibitors bound to CDPK1 and the human kinase c-SRC. Furthermore, the insight gained from these studies was applied to transform an alternative ATP-competitive scaffold lacking potency and selectivity for CDPK1 into a low nanomolar inhibitor of this enzyme with no activity against SRC.