Skip to content

Instantly share code, notes, and snippets.

@aabs
Created February 6, 2019 21:33
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save aabs/e41f619e4d9caa5cbf39703c47f3ca68 to your computer and use it in GitHub Desktop.
Save aabs/e41f619e4d9caa5cbf39703c47f3ca68 to your computer and use it in GitHub Desktop.
nix shell for python dev
{ pkgs ? import <nixpkgs> {} }:
with pkgs;
let
inherit (lib) optional optionals;
proxy = "<your proxy if you need one>";
in
mkShell {
buildInputs = [
python36Full
jupyter
python36Packages.virtualenv
python36Packages.pip
python36Packages.dask
python36Packages.pandas
python36Packages.scikitlearn
python36Packages.kafka-python
python36Packages.paho-mqtt
python36Packages.ipython
python36Packages.ipdb
python36Packages.jinja2
python36Packages.pamqp
python36Packages.rabbitpy
python36Packages.toolz
python36Packages.more-itertools
python36Packages.joblib
python36Packages.tqdm
git
timescaledb
glibcLocales
inotify-tools
jetbrains.pycharm-community
];
HTTP_PROXY = "${proxy}";
HTTPS_PROXY = "${proxy}";
http_proxy = "${proxy}";
https_proxy = "${proxy}";
# Put the PostgreSQL databases in the project diretory.
LOCALE_ARCHIVE = "${pkgs.glibcLocales}/lib/locale/locale-archive";
shellHook = ''
export LANG=en_US.UTF-8
export PGDATA="$PWD/db"
'';
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment