@@ -1,4 +1,4 @@
1−{ lib, fetchPypi, isPy3k, buildPythonPackage, numpy, matplotlib, root, root_numpy, tables }:
1+{ lib, fetchPypi, isPy3k, buildPythonPackage, numpy, matplotlib, root, root_numpy, tables, pytest }:
22
33buildPythonPackage rec {
44 pname = "rootpy";
@@ -14,6 +14,14 @@ buildPythonPackage rec {
1414
1515 propagatedBuildInputs = [ matplotlib numpy root root_numpy tables ];
1616
17+ checkInputs = [ pytest ];
18+ checkPhase = ''
19+ # tests fail with /homeless-shelter
20+ export HOME=$PWD
21+ # skip problematic tests
22+ py.test rootpy -k "not test_stl and not test_cpp and not test_xrootd_glob_single and not test_xrootd_glob_multiple"
23+ '';
24+
1725 meta = with lib; {
1826 homepage = http://www.rootpy.org;
1927 license = licenses.bsd3;