Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/antares0982/nix-pyenv

Nix Python workspace template for modern IDEs, without virtualenv
https://github.com/antares0982/nix-pyenv

direnv environment ide nix nix-shell python

Last synced: 8 days ago
JSON representation

Nix Python workspace template for modern IDEs, without virtualenv

Awesome Lists containing this project

README

        

# nix-pyenv
A very simple Python workspace template for Nix users with modern IDEs, without virtualenv

### Prerequsite

Install `direnv` (optional)

### Usage

* Copy all these files to your workspace
* Add requirements in `py_requirements.nix`. Modify python version in `shell.nix`
* Enable `direnv` for your workspace (using `direnv allow .`) (optional)
* run `nix-shell` to generate the symlinks
* pass `persist = true;` to `shell.nix` if you want a shell env that will not be GCed as long as the `.nix-pyenv` directory still exists

#### VSCode

* Enable [direnv](https://github.com/direnv/direnv-vscode) plugin (optional)
* Choose correct python interpreter