A compound of formula I: ** Formula ** wherein R1 and R2 are hydrogen; X represents a methylene group; Y represents an oxygen or sulfur atom; n represents the number 0, 1, 2 5 or 3 and m represents the number 0 or 1; R3 represents a pyridine group according to formula A, B or C, which is connected as indicated by the unsigned link: ** Formula ** where R4, R5, R6 and R7, independently of each other, represent hydrogen, alkyl C1-C6, C1-C6 thioalkyl, C1-C6 alkoxy, C6-C12 aryloxy or a C6-C12 thioaryl group, C1-C6 alkanoyl or C7-C13 aroyl group, amino, (C1-C6 alkyl) amino, di (alkyl C 1 -C 6) amino, (C 3 -C 12 cycloalkyl) amino, (C 3 -C 12 heterocycloalkyl) amino, (C 1 -C 6 alkyl) sulfonyl, (C 6 -C 12 aryl) sulfonyl, halogen, C 1 -C 6 haloalkyl, trifluoromethyl, cyano, nitro or a heteroaryl group; or two or more of the residues R4, R5, R6 and R7 taken together represent aliphatic or heteroaliphatic rings or aromatic or heteroaromatic rings and where P is 1,2,4-oxadiazol-3,5-diyl or a pharmaceutically acceptable salt of a compound of formula I.Un compuesto de fórmula I:**Fórmula** en donde R1 y R2 son hidrógeno; X representa un grupo metileno; Y representa un átomo de oxígeno o de azufre; n representa el número 0, 1, 2 5 o 3 y m representa el número 0 o 1; R3 representa un grupo de piridina según la fórmula A, B o C, que está conectado como indica el enlace sin señalar:**Fórmula** en donde R4, R5, R6 y R7, de manera independiente entre sí, representan hidrógeno, alquilo C1-C6, tioalquilo C1-C6, alcoxi C1-C6, ariloxi C6-C12 o un grupo tioarilo C6-C12, alcanoílo C1-C6 o grupo aroílo C7-C13, amino, (alquil C1-C6)amino, di(alquil C1-C6)amino, (cicloalquil C3-C12)amino, (heterocicloalquil C3-C12)amino, (alquil C1-C6)sulfonilo, (aril C6-C12)sulfonilo, halógeno, haloalquilo C1-C6, trifluorometilo, ciano, nitro o un grupo heteroarilo; o bien dos o más de los restos R4, R5, R6 y R7 tomados juntos representan anillos alifáticos o heteroalifáticos o anillos aromáticos o heteroaromát