Cycloaddition of pyridine N-imine with 6-alkyl-4-oxohex-5-ynoates followed by condensation with hydrazine provides concise access to pharmacologically active 6-(pyrazolo[1,5-a]pyridin-3-yl)pyridazinones. For the first time alkynyl heterocycles are also shown to be effective dipolarophiles for pyridine N-imine, and analogous compounds can be accessed directly in modest yields through the reaction of 6-(alkyn-1-yl)pyridazin-3-one derivatives.