4 ms·
I've had luck with using the approach in here https://nixos.wiki/wiki/Python#Emulating_virtualenv_with_nix_shell https://nixos.wiki/wiki/Python#Emulating_virtua
by tomberek 6y ago
I've had luck with using the approach in here https://nixos.wiki/wiki/Python#Emulating_virtualenv_with_nix_shell https://nixos.wiki/wiki/Python#Emulating_virtualenv_with_nix... because it allows the escape hatch of using pip if something isn't packaged and I want to quickly try something out. I have also been meaning to try mach-nix which may obviate the need for pip at all. Having a good standard skeleton for a python/nix project would be super helpful to add to the wiki, etc.
- takeda 6y agoI tried multiple solutions myself, this one is the closest to what I want, because: - overlays the packages on top of nixpkgs - understands setup.cfg and can get dependencies from it It is still not perfect, but when I find some time I think to submit a PR to nixpkgs to improve setupcfg2nix. Particularly it doesn't understand tests_require which you can list dependencies to run unit tests. Nix has equivalent checkDepends.