Skip to content

Instantly share code, notes, and snippets.

@berdario
Created July 3, 2016 19:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save berdario/94fe51f9ac1366c2ab9e59c98682fc04 to your computer and use it in GitHub Desktop.
Save berdario/94fe51f9ac1366c2ab9e59c98682fc04 to your computer and use it in GitHub Desktop.
{
master = pkgs.python35Packages.buildPythonApplication (inputs // {
preUnpackHook = ''
PDIR = $(pwd)
echo "qui: $PDIR"
cd $(mktemp -d)
git clone $PDIR .
export sourceRoot="./checkprices"
'';
checkPhase = "env MYPYPATH=$PWD/stubs py.test";
doCheck = true;
});
dev = pkgs.python35Packages.buildPythonApplication (inputs // {
src = ./.;
postShellHook = ''
export LC_ALL=en_US.UTF-8
export MYPYPATH=$PWD/stubs
'';
});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment