buildPythonPackage: add installFlags

This commit is contained in:
Nikolay Amiantov 2016-02-16 17:45:15 +03:00 committed by Frederik Rietdijk
parent c98098fdca
commit 895f51222e

View File

@ -42,6 +42,9 @@
# generated binaries.
, makeWrapperArgs ? []
# Additional flags to pass to "pip install".
, installFlags ? []
, ... } @ attrs:
@ -95,7 +98,7 @@ python.stdenv.mkDerivation (builtins.removeAttrs attrs ["disabled" "doCheck"] //
export PYTHONPATH="$out/${python.sitePackages}:$PYTHONPATH"
pushd dist
${bootstrapped-pip}/bin/pip install *.whl --no-index --prefix=$out --no-cache
${bootstrapped-pip}/bin/pip install *.whl --no-index --prefix=$out --no-cache ${toString installFlags}
popd
runHook postInstall