Add checkPhase for pipenv

This is to prevent regressions such as https://github.com/NixOS/nixpkgs/issues/73254
by using pipenv to install a simple Python package, thus testing
that pipenv was built correctly.

Many thanks to @Infinisil and @domenkozar for hand-holding!
This commit is contained in:
Nejc Zupan 2019-11-13 15:28:27 +00:00 committed by Frederik Rietdijk
parent 97a3671625
commit ad078d83a4

View file

@ -39,7 +39,11 @@ in buildPythonApplication rec {
propagatedBuildInputs = runtimeDeps;
doCheck = false;
doCheck = true;
checkPhase = ''
export HOME=$PWD
$out/bin/pipenv install ${fetchPypi {pname="pyjokes"; version="0.6.0"; sha256="08860eedb78cbfa4618243c8db088f21c39823ece1fdaf0133e52d9c56e981a5";} }
'';
meta = with lib; {
description = "Python Development Workflow for Humans";