I’m asking for experience reports here. My situation is:
I’ve got multiple Python projects I would like to use Nix with. They have a setup.py and I’m currently using pip to install dependencies (as in pip install -e .[some-flags]).
Ideally, I would like to not write any custom Nix derivations for these projects and have one derived for me from the setup.py, or possibly from a requirements.txt or something similar. My goals would be:
Using direnv + nix-shell to auto-load a nice shell environment with all dependencies in place when I cd into the directory.
Package my application into a Docker container easily (possibly only one of the entry_points).
Is something like that possible? I saw that there is…
That must be the best, most comprehensive answer I have ever received on a forum, thanks Jon! I’ll take a look at mach-nix and poetry2nix and see if one of them is what I wanted.