honcho: native fixes

This commit is contained in:
Frederik Rietdijk 2019-01-05 15:22:36 +01:00 committed by Frederik Rietdijk
parent 45e6cb3b76
commit 8e24aa9149

View File

@ -18,19 +18,19 @@ pythonPackages.buildPythonApplication rec {
sha256 = "11bd87474qpif20xdcn0ra1idj5k16ka51i658wfpxwc6nzsn92b";
};
buildInputs = with pythonPackages; [ jinja2 pytest mock coverage ];
checkInputs = with pythonPackages; [ jinja2 pytest mock coverage ];
buildPhase = ''
${python.interpreter} setup.py build
'';
installPhase = ''
mkdir -p "$out/lib/${python.libPrefix}/site-packages"
mkdir -p "$out/${python.sitePackages}"
export PYTHONPATH="$out/lib/${python.libPrefix}/site-packages:$PYTHONPATH"
export PYTHONPATH="$out/${python.sitePackages}:$PYTHONPATH"
${python}/bin/${python.executable} setup.py install \
--install-lib=$out/lib/${python.libPrefix}/site-packages \
${python.interpreter} setup.py install \
--install-lib=$out/${python.sitePackages} \
--prefix="$out"
'';