def classmethod(func):
    """Wrap a function as a classmethod.

    This applies the classmethod decorator.
    """
    attr = abc.abstractmethod(func)
    attr.__iclassmethod__ = True
    attr = _classmethod(attr)
    return attr