A copier template to bootstrap python environments on NixOS. Borrows liberally from Inception.
So far, it provides two approaches:
- devenv.sh supporting uv and pip
- A buildFHSEnv devShell supporting uv, pip, pixi and micromamba
You can use copier:
copier copy gh:mauricege/nix-python-templates target-directory --trustOr the wrapper provided by the flake:
nix run github:mauricege/nix-python-templates -- init target-directoryThe wrapper will check your target directory for existing python packaging files, such as uv.lock, environment.yml or pixi.lock, to automatically set sane defaults for some questions. It wraps copier's copy (init) and update.
You can also install the wrapper to your system via nix:
nix profile install github:mauricege/nix-python-templates#python-env
python-env init target-directory