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 usingpip
to install dependencies (as inpip 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 arequirements.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…
- pypi2nix which has been abandoned
- poetry2nix for which I would have to adopt poetry, a step I’d be willing to take if it really works.
Is there any…methodology or something I missed?