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:
parent
97a3671625
commit
ad078d83a4
@ -39,7 +39,11 @@ in buildPythonApplication rec {
|
|||||||
|
|
||||||
propagatedBuildInputs = runtimeDeps;
|
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; {
|
meta = with lib; {
|
||||||
description = "Python Development Workflow for Humans";
|
description = "Python Development Workflow for Humans";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user