Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/antares0982/nix-pyenv
- Owner: Antares0982
- License: mit
- Created: 2024-04-21T08:05:44.000Z (8 months ago)
- Default Branch: main
- Last Pushed: 2024-12-02T15:05:04.000Z (24 days ago)
- Last Synced: 2024-12-02T16:26:31.652Z (23 days ago)
- Topics: direnv, environment, ide, nix, nix-shell, python
- Language: Nix
- Homepage:
- Size: 21.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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