How to use robotframework-browserlib & playwright on nixos

I need to use robotframework-browserlib and playwright on NixOS. nixpkgs only includes older robotframework-seleniumlibrary. I’ve tried to package browserlib, but I’m hitting a wall.

Is my approach totally wrong? How would you solve this? Small tweaks? Different approach from scratch?

Any help is appreciated.