you can follow my post from Jupyter notebook dependency management with Poetry - #2 by jonringer . You will want nixpkgs to supply you with a version of pyzmq
which has been linked against libstdc++.so
Your underlying issue is that nixos only exposes the libc libraries, but not the c++ libraries, which is why some .so’s will work fine, but many c++ ones will not.
I also made a video demonstrating nix python package usage with nix-shell here: https://youtu.be/jXd-hkP4xnU?t=1497 . I fast forwarded to roughly the correct spot.