Guest User

Untitled

a guest
Jun 21st, 2018
177
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.73 KB | None | 0 0
  1. { pkgs ? import <nixpkgs> {} }:
  2.   with pkgs;
  3.   python35Packages.buildPythonApplication {
  4.     name = "python-project";
  5.     buildInputs =   [
  6.       python36Packages.pip
  7.     ];
  8.   lala = builtins.fetchGit {
  9.     url = URL!!;
  10.     ref = "1.1";
  11.     rev = "31c830093b526978ffae827a807ca0a9211b8446";
  12.   };
  13.    shellHook = ''
  14.       # extra packages can be installed here
  15.       unset SOURCE_DATE_EPOCH
  16.       export PIP_PREFIX="$(pwd)/pip_packages"
  17.       python_path=(
  18.         "$PIP_PREFIX/lib/python3.6/site-packages"
  19.         "$PYTHONPATH"
  20.       )
  21.       # use double single quotes to escape bash quoting
  22.       IFS=: eval 'python_path="''${python_path[*]}"'
  23.       export PYTHONPATH="$python_path"
  24.       export MPLBACKEND='Qt4Agg'
  25.     '';
  26. }
Advertisement
Add Comment
Please, Sign In to add comment