Skip to content
This repository has been archived by the owner on Dec 15, 2022. It is now read-only.

Commit

Permalink
Add shell.nix to create virtual env for testing
Browse files Browse the repository at this point in the history
  • Loading branch information
EmilioPeJu committed Jun 21, 2020
1 parent b4ad0e9 commit 883dda3
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions shell.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
with import <nixpkgs> {};

mkShell {
buildInputs = [
python38
python3Packages.pyzmq
python38Packages.setuptools
python38Packages.pip
];
shellHook = ''
alias pip="PIP_PREFIX='$(pwd)/_build/pip_packages' \pip"
export PYTHONPATH="$(pwd)/_build/pip_packages/lib/python3.8/site-packages:$PYTHONPATH"
# export PYTHONPATH="$PYTHONPATH:$(pwd)"
unset SOURCE_DATE_EPOCH
# pip install pathlib
# pip install aiogram
pip install -e .
'';
}

0 comments on commit 883dda3

Please sign in to comment.