Can PVLIB be used for hotspot modelling?
You can use the single-diode model functions from pvlib to build up the electrical simulation for this scenario, and thereby determine how much electrical power the affected cell absorbs.
There isn't a thermal model in pvlib to tell you how hot it would get, but as a first approximation you could adapt one of the existing module/cell temperature functions quite easily.  There is a local variable called heat_input to which you can add the electrical power.
I am still getting used to PVLIB and figuring out how to use the methods associated with it. I'd like to be able to model the growth of localised hotspots in a PV module due to current mismatch that results from partial shading.
I'd be surprised if I was the first person to do this, so I'm wondering what other solutions exist to do this in a straightforward way from PVLIB.