2019-06-19 03:18:45 +02:00
|
|
|
{ lib, fetchPypi, buildPythonPackage, isPy27
|
2018-10-25 17:26:45 +02:00
|
|
|
, awkward
|
2019-06-19 03:18:45 +02:00
|
|
|
, backports_lzma
|
2018-10-25 17:26:45 +02:00
|
|
|
, cachetools
|
2019-06-19 02:25:40 +02:00
|
|
|
, lz4
|
2018-10-25 17:26:45 +02:00
|
|
|
, pytestrunner
|
|
|
|
, pytest
|
2019-01-17 22:18:08 +01:00
|
|
|
, pkgconfig
|
2019-03-05 13:08:45 +01:00
|
|
|
, mock
|
2019-06-19 02:25:40 +02:00
|
|
|
, numpy
|
2019-03-05 13:08:45 +01:00
|
|
|
, requests
|
2019-06-19 02:25:40 +02:00
|
|
|
, uproot-methods
|
|
|
|
, xxhash
|
2018-10-25 17:26:45 +02:00
|
|
|
}:
|
2018-04-26 09:59:20 +02:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "uproot";
|
2019-06-19 02:25:40 +02:00
|
|
|
version = "3.7.0";
|
2018-04-26 09:59:20 +02:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2019-06-19 02:25:40 +02:00
|
|
|
sha256 = "0glsl57ha0d4pn5q318dmzml7crml1h8yilbhxh768wcs2030s1g";
|
2018-04-26 09:59:20 +02:00
|
|
|
};
|
|
|
|
|
2019-03-05 13:08:45 +01:00
|
|
|
nativeBuildInputs = [ pytestrunner ];
|
2019-06-19 02:25:40 +02:00
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
lz4
|
|
|
|
mock
|
|
|
|
pkgconfig
|
|
|
|
pytest
|
|
|
|
requests
|
|
|
|
xxhash
|
2019-06-19 03:18:45 +02:00
|
|
|
] ++ lib.optional isPy27 backports_lzma;
|
2019-06-19 02:25:40 +02:00
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
numpy
|
|
|
|
cachetools
|
|
|
|
uproot-methods
|
|
|
|
awkward
|
|
|
|
];
|
|
|
|
|
|
|
|
# skip tests which do network calls
|
|
|
|
checkPhase = ''
|
|
|
|
pytest tests -k 'not hist_in_tree and not branch_auto_interpretation'
|
|
|
|
'';
|
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 ];
|
|
|
|
};
|
|
|
|
}
|