Author: eelco
Date: Wed Mar 30 12:27:04 2011
New Revision: 26602
URL: https://svn.nixos.org/websvn/nix/?rev=26602&sc=1

Log:
* Generic Python builder: support preCheck and postCheck.

Modified:
   
nixpkgs/branches/modular-python/pkgs/development/python-modules/generic/default.nix

Modified: 
nixpkgs/branches/modular-python/pkgs/development/python-modules/generic/default.nix
==============================================================================
--- 
nixpkgs/branches/modular-python/pkgs/development/python-modules/generic/default.nix
 Wed Mar 30 11:54:17 2011        (r26601)
+++ 
nixpkgs/branches/modular-python/pkgs/development/python-modules/generic/default.nix
 Wed Mar 30 12:27:04 2011        (r26602)
@@ -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 ? ""
 
_______________________________________________
nix-commits mailing list
[email protected]
http://mail.cs.uu.nl/mailman/listinfo/nix-commits

Reply via email to