Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)

python27Packages.rootpy: fix build (tests)

run tests properly, skip problematic tests

(cherry picked from commit 837dd2e37112aa8ebcb17fc50a7e3cba8ee85ab8)

authored by xeji and committed by Robert Schütz becbe4db 4833d90e

+9 -1
+9 -1
pkgs/development/python-modules/rootpy/default.nix
··· 1 - { lib, fetchPypi, isPy3k, buildPythonPackage, numpy, matplotlib, root, root_numpy, tables }: 1 + { lib, fetchPypi, isPy3k, buildPythonPackage, numpy, matplotlib, root, root_numpy, tables, pytest }: 2 2 3 3 buildPythonPackage rec { 4 4 pname = "rootpy"; ··· 13 13 disabled = isPy3k; 14 14 15 15 propagatedBuildInputs = [ matplotlib numpy root root_numpy tables ]; 16 + 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 + ''; 16 24 17 25 meta = with lib; { 18 26 homepage = http://www.rootpy.org;