@publicvoit Nix works perfectly fine with Python, I do Python development in it all day every day. There's some really exciting work in the space, too.
You don't have to be a wizard, but you do have to put in some consideration for what you're doing. Your problem is literally the first paragraph of the NixOS wiki page for "Python". https://nixos.wiki/wiki/Python
Consider that Python C extensions link with system libraries in a way that doesn't translate to NixOS because of the Nix store. You're effectively doing it wrong. Instead of nix-shell -p, try a shell.nix file. Maybe read about what Nix is and does.