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