python27Packages.rootpy: fix build (tests)

run tests properly, skip problematic tests

xeji 837dd2e3 5a4a3a64

Changed files
+9 -1
pkgs
development
python-modules
rootpy
+9 -1
pkgs/development/python-modules/rootpy/default.nix
···
-
{ lib, fetchPypi, isPy3k, buildPythonPackage, numpy, matplotlib, root, root_numpy, tables }:
+
{ lib, fetchPypi, isPy3k, buildPythonPackage, numpy, matplotlib, root, root_numpy, tables, pytest }:
buildPythonPackage rec {
pname = "rootpy";
···
disabled = isPy3k;
propagatedBuildInputs = [ matplotlib numpy root root_numpy tables ];
+
+
checkInputs = [ pytest ];
+
checkPhase = ''
+
# tests fail with /homeless-shelter
+
export HOME=$PWD
+
# skip problematic tests
+
py.test rootpy -k "not test_stl and not test_cpp and not test_xrootd_glob_single and not test_xrootd_glob_multiple"
+
'';
meta = with lib; {
homepage = http://www.rootpy.org;