Initial commit

This commit is contained in:
Alexandre Iooss 2021-09-22 17:52:19 +02:00
commit 76ed93ff33
8 changed files with 246 additions and 0 deletions

19
shell.nix Normal file
View file

@ -0,0 +1,19 @@
let
pkgs = import <nixpkgs> {};
in pkgs.mkShell {
buildInputs = with pkgs; [
python3
python3.pkgs.django
python3.pkgs.pip
python3.pkgs.pillow
];
shellHook = ''
# Tells pip to put packages into $PIP_PREFIX instead of the usual locations.
# See https://pip.pypa.io/en/stable/user_guide/#environment-variables.
export PIP_PREFIX=$(pwd)/_build/pip_packages
export PYTHONPATH="$PIP_PREFIX/${pkgs.python3.sitePackages}:$PYTHONPATH"
export PATH="$PIP_PREFIX/bin:$PATH"
unset SOURCE_DATE_EPOCH
'';
}