2018-10-25 16:26:45 +01:00
|
|
|
{ lib
|
|
|
|
, fetchPypi
|
|
|
|
, buildPythonPackage
|
|
|
|
, numpy
|
|
|
|
, uproot-methods
|
|
|
|
, awkward
|
|
|
|
, cachetools
|
|
|
|
, pythonOlder
|
|
|
|
, pytestrunner
|
|
|
|
, pytest
|
2019-01-17 21:18:08 +00:00
|
|
|
, pkgconfig
|
|
|
|
, lz4
|
2019-03-05 12:08:45 +00:00
|
|
|
, mock
|
|
|
|
, requests
|
2018-10-25 16:26:45 +01:00
|
|
|
, backports_lzma
|
|
|
|
}:
|
2018-04-26 08:59:20 +01:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "uproot";
|
2019-02-23 14:36:02 +00:00
|
|
|
version = "3.4.6";
|
2018-04-26 08:59:20 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2019-02-23 14:36:02 +00:00
|
|
|
sha256 = "1fafe476c26252e4dbd399456323778e76d23dc2f43cf6581a707d1647978610";
|
2018-04-26 08:59:20 +01:00
|
|
|
};
|
|
|
|
|
2019-03-05 12:08:45 +00:00
|
|
|
nativeBuildInputs = [ pytestrunner ];
|
|
|
|
checkInputs = [ pytest pkgconfig lz4 mock requests ]
|
2018-10-25 16:26:45 +01:00
|
|
|
++ lib.optionals (pythonOlder "3.3") [ backports_lzma ];
|
2019-01-17 21:18:08 +00:00
|
|
|
propagatedBuildInputs = [ numpy cachetools uproot-methods awkward ];
|
2018-04-26 08:59:20 +01: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 ];
|
|
|
|
};
|
|
|
|
}
|