I have been struggling hard doing proper :python: #Python development on :nixos: #NixOS.
pip install'ed binary packages (numpy et. al) don't work (i.e. don't find system libraries like libz libstdc++ etc.), making scientific data analysis completely impossible. The workarounds (using the nixpkgs versions or setting LD_LIBRARY_PATH) are not viable.
With this #poetry2nix flake template (the clue is preferWheels=true) it seems I can finally work properly:
@publicvoit After giving #poetry2nix another try, my conclusion is that it's quite messy. I still couldn't get it to work. You need to manually tell it the build systems and it relies on many (all?) packages being packaged in #nix. The 'whey' package isn't - so dead end. (because that's part of the build system?).