From 69b974bda61c72bd1bc0ec8132b8315269d9e0ae Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Wed, 30 Mar 2011 12:27:04 +0000 Subject: [PATCH] * Generic Python builder: support preCheck and postCheck. svn path=/nixpkgs/branches/modular-python/; revision=26602 --- pkgs/development/python-modules/generic/default.nix | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/pkgs/development/python-modules/generic/default.nix b/pkgs/development/python-modules/generic/default.nix index 146de620d57c..46149177320d 100644 --- a/pkgs/development/python-modules/generic/default.nix +++ b/pkgs/development/python-modules/generic/default.nix @@ -24,7 +24,14 @@ , buildPhase ? "true" -, doCheck ? true, checkPhase ? "python setup.py test" +, doCheck ? true + +, checkPhase ? + '' + runHook preCheck + python setup.py test + runHook postCheck + '' , postInstall ? ""