Zuletzt aktiv 1 year ago

nix-shell for python + poetry + psycopg

Änderung 7b6a8229be70ec22f8271b4145a457e14b07cb76

shell.nix Originalformat
1# Small nix-shell environment for python 3.10 + poetry
2#
3# See https://nixos.wiki/wiki/Python
4# launch with nix-shell (and not 'nix shell' !)
5#
6# nix-shell --run 'python --version; poetry --version'
7# Python 3.10.13
8# Poetry (version 1.7.1)
9#
10let
11 pkgs = import <nixpkgs> { };
12in
13pkgs.mkShell {
14 packages = with pkgs; [
15 (python310.withPackages (python-pkgs: with python-pkgs; [
16 pip
17 psycopg
18 virtualenv
19 ]))
20 poetry
21 ];
22}