Skip to content

Instantly share code, notes, and snippets.

@dustinlacewell-wk
Created April 27, 2018 21:20
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 dustinlacewell-wk/f8fd4a5f3fabfacaf267ff8950b45bbe to your computer and use it in GitHub Desktop.
Save dustinlacewell-wk/f8fd4a5f3fabfacaf267ff8950b45bbe to your computer and use it in GitHub Desktop.
with import <nixpkgs> {};
with pkgs.python27Packages;
stdenv.mkDerivation {
name = "orchestrator-api";
buildInputs = [
# these packages are required for virtualenv and pip to work:
#
python27Full
python27Packages.virtualenv
python27Packages.pip
# the following packages are related to the dependencies of your python
# project.
# In this particular example the python modules listed in the
# requirements.tx require the following packages to be installed locally
# in order to compile any binary extensions they may require.
#
taglib
openssl
git
libxml2
libxslt
libzip
stdenv
zlib ];
src = null;
shellHook = ''
# set SOURCE_DATE_EPOCH so that we can use python wheels
SOURCE_DATE_EPOCH=$(date +%s)
virtualenv --no-setuptools venv
export PATH=$PWD/venv/bin:$PATH
pip install -r requirements.txt
pip install -r requirements_dev.txt
'';
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment