I computed that manually in Chapter 14 or our book 43 by sorting the predictions and then getting tp / fp per threshold with broadcasting (cell 4) and then doing the numerical integration using the trapezoidal rule (cell 5).
Lazy, but works well enough for me.
Best regards
Thomas