def pyenv(command: str) -> str:
    """ Wrap a command to use the pyenv environment.

    :param command: original command
    :return: modified command
    """
    # Testinfra uses a separate /bin/sh invocation for every remote command,
    # and ~/.profile is not being sourced, so it needs to be prepended to every
    # command.
    return f". ~/.profile && {command}"