2018-10-25 08:26:45 -07:00
|
|
|
{ lib
|
|
|
|
, fetchPypi
|
|
|
|
, buildPythonPackage
|
|
|
|
, numpy
|
|
|
|
, uproot-methods
|
|
|
|
, awkward
|
|
|
|
, cachetools
|
|
|
|
, pythonOlder
|
|
|
|
, pytestrunner
|
|
|
|
, pytest
|
2019-01-17 13:18:08 -08:00
|
|
|
, pkgconfig
|
|
|
|
, lz4
|
2018-10-25 08:26:45 -07:00
|
|
|
, backports_lzma
|
|
|
|
}:
|
2018-04-26 00:59:20 -07:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "uproot";
|
2019-01-17 07:13:08 -08:00
|
|
|
version = "3.2.15";
|
2018-04-26 00:59:20 -07:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2019-01-17 07:13:08 -08:00
|
|
|
sha256 = "a871f57529e3df170aa5556c1353a64077277644baecabb18d042954f2af9030";
|
2018-04-26 00:59:20 -07:00
|
|
|
};
|
|
|
|
|
2018-10-25 08:26:45 -07:00
|
|
|
buildInputs = [ pytestrunner ];
|
2019-01-17 13:18:08 -08:00
|
|
|
checkInputs = [ pytest pkgconfig lz4 ]
|
2018-10-25 08:26:45 -07:00
|
|
|
++ lib.optionals (pythonOlder "3.3") [ backports_lzma ];
|
2019-01-17 13:18:08 -08:00
|
|
|
propagatedBuildInputs = [ numpy cachetools uproot-methods awkward ];
|
2018-04-26 00:59:20 -07: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 ];
|
|
|
|
};
|
|
|
|
}
|