def script_group_name(hook_name):
    """ Derive the entry point group name from the git hook name.

        >>> script_group_name('pre-commit')
        'flowtool_githooks.pre_commit'
    """
    return 'flowtool_githooks.' + hook_name.replace('-', '_')
