def build_rrule_from_recurrences_rrule(rule):
    """
    Build rrule dictionary for vRecur class from a django_recurrences rrule.

    django_recurrences is a popular implementation for recurrences in django.
    https://pypi.org/project/django-recurrence/
    this is a shortcut to interface between recurrences and icalendar.
    """
    from recurrence import serialize
    line = serialize(rule)
    if line.startswith('RRULE:'):
        line = line[6:]
    return build_rrule_from_text(line)