Created
April 27, 2018 21:20
-
-
Save dustinlacewell-wk/f8fd4a5f3fabfacaf267ff8950b45bbe to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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