2018-10-25 17:26:45 +02:00
|
|
|
{ lib
|
|
|
|
, fetchPypi
|
|
|
|
, buildPythonPackage
|
|
|
|
, numpy
|
|
|
|
, python-lz4
|
|
|
|
, uproot-methods
|
|
|
|
, awkward
|
|
|
|
, cachetools
|
|
|
|
, pythonOlder
|
|
|
|
, pytestrunner
|
|
|
|
, pytest
|
|
|
|
, backports_lzma
|
|
|
|
}:
|
2018-04-26 09:59:20 +02:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "uproot";
|
2018-11-18 12:48:12 +01:00
|
|
|
version = "3.2.12";
|
2018-04-26 09:59:20 +02:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2018-11-18 12:48:12 +01:00
|
|
|
sha256 = "0jxsv0038glxz87skjxr58fafwyqilivkrygpvk4nkp866i5kz2k";
|
2018-04-26 09:59:20 +02:00
|
|
|
};
|
|
|
|
|
2018-10-25 17:26:45 +02:00
|
|
|
buildInputs = [ pytestrunner ];
|
|
|
|
checkInputs = [ pytest ]
|
|
|
|
++ lib.optionals (pythonOlder "3.3") [ backports_lzma ];
|
|
|
|
propagatedBuildInputs = [ numpy python-lz4 cachetools uproot-methods awkward ];
|
2018-04-26 09:59:20 +02:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
homepage = https://github.com/scikit-hep/uproot;
|
|
|
|
description = "ROOT I/O in pure Python and Numpy";
|
|
|
|
license = licenses.bsd3;
|
|
|
|
maintainers = with maintainers; [ ktf ];
|
|
|
|
};
|
|
|
|
}
|