            "src/python/BUILD": (
                "protobuf_source(name='proto', source='foo.proto')\n"
                "python_sources(dependencies=[':proto'])"
            ),
        }
    )
    return rule_runner