Because Nix is all you need.
Nix-Python is a setup that allows you to manage Python environments and dependencies using Nix. It ensures that you have a consistent development environment with a specific Python version. It handles both FHS (Filesystem Hierarchy Standard) and non-FHS compliant systems, providing flexibility across different environments.
Run the following command to launch a shell with a pinned Python version (currently set to 3.1, modify if needed):
nix develop- If a virtual environment does not exist, it will be created.
- Dependencies specified in
requirements.txtorpyproject.tomlwill be installed using the local UV cache if it exists.
Run the following command to create a Docker image:
nix build