I started playing with Renderman and the Blender add-on and I noticed that Renderman supports OSL shaders. After some experimenting I got it working and you can read the technical details on how to get it working in this article.
It all still feels a little bit hackish (partly because of my lack of Renderman experience) but it looks very promising.