def METHOD_NAME(ctx: AnalysisContext, rpm: Artifact, href: str) -> Artifact:
    out = ctx.actions.declare_output("xml.json")
    ctx.actions.run(
        cmd_args(
            ctx.attrs.makechunk[RunInfo],
            cmd_args(rpm, format = "--rpm={}"),
            cmd_args(out.as_output(), format = "--out={}"),
            "--href={}".format(href),
        ),
        category = "makexml",
    )
    return out