1{ lib, fetchPypi, isPy3k, buildPythonPackage, numpy, matplotlib, root, root_numpy, tables, pytest }:
2
3buildPythonPackage rec {
4 pname = "rootpy";
5 version = "1.0.1";
6
7 src = fetchPypi {
8 inherit pname version;
9 sha256 = "0zp2bh87l3f0shiqslbvfmavfdj8m80y8fsrz8rsi5pzqj7zr1bx";
10 };
11
12 disabled = isPy3k;
13
14 propagatedBuildInputs = [ matplotlib numpy root root_numpy tables ];
15
16 checkInputs = [ pytest ];
17 checkPhase = ''
18 # tests fail with /homeless-shelter
19 export HOME=$PWD
20 # skip problematic tests
21 py.test rootpy -k "not test_stl and not test_cpp and not test_xrootd_glob_single and not test_xrootd_glob_multiple"
22 '';
23
24 meta = with lib; {
25 homepage = http://www.rootpy.org;
26 license = licenses.bsd3;
27 description = "Pythonic interface to the ROOT framework";
28 maintainers = with maintainers; [ veprbl ];
29 };
30}