diff options
author | xeji <xeji@cat3.de> | 2018-04-04 22:30:27 +0200 |
---|---|---|
committer | Robert Schütz <rschuetz17@gmail.com> | 2018-04-05 00:15:49 +0200 |
commit | 837dd2e37112aa8ebcb17fc50a7e3cba8ee85ab8 (patch) | |
tree | 4a4c0e8dbb83bcbcabc6d078bc95485afbc30042 | |
parent | 5a4a3a6433c2e8f555f77a2cb841ba386ced7f78 (diff) | |
download | nixlib-837dd2e37112aa8ebcb17fc50a7e3cba8ee85ab8.tar nixlib-837dd2e37112aa8ebcb17fc50a7e3cba8ee85ab8.tar.gz nixlib-837dd2e37112aa8ebcb17fc50a7e3cba8ee85ab8.tar.bz2 nixlib-837dd2e37112aa8ebcb17fc50a7e3cba8ee85ab8.tar.lz nixlib-837dd2e37112aa8ebcb17fc50a7e3cba8ee85ab8.tar.xz nixlib-837dd2e37112aa8ebcb17fc50a7e3cba8ee85ab8.tar.zst nixlib-837dd2e37112aa8ebcb17fc50a7e3cba8ee85ab8.zip |
python27Packages.rootpy: fix build (tests)
run tests properly, skip problematic tests
-rw-r--r-- | pkgs/development/python-modules/rootpy/default.nix | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/pkgs/development/python-modules/rootpy/default.nix b/pkgs/development/python-modules/rootpy/default.nix index 0827786acfcd..e9061b0a6a33 100644 --- a/pkgs/development/python-modules/rootpy/default.nix +++ b/pkgs/development/python-modules/rootpy/default.nix @@ -1,4 +1,4 @@ -{ 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"; @@ -14,6 +14,14 @@ buildPythonPackage rec { 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; license = licenses.bsd3; |