Created
February 6, 2019 21:33
-
-
Save aabs/e41f619e4d9caa5cbf39703c47f3ca68 to your computer and use it in GitHub Desktop.
nix shell for python dev
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ 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