@classmethod
def can_install(cls, component, user):
    """Check whether addon is compatible with given component."""
    for key, values in cls.compat.items():
        if getattr(component, key) not in values:
            return False
    return True
