2019-06-19 01:18:45 +00:00
|
|
|
{ lib, fetchPypi, buildPythonPackage, isPy27
|
2018-10-25 15:26:45 +00:00
|
|
|
, awkward
|
2019-06-19 01:18:45 +00:00
|
|
|
, backports_lzma
|
2018-10-25 15:26:45 +00:00
|
|
|
, cachetools
|
2019-06-19 00:25:40 +00:00
|
|
|
, lz4
|
2019-11-28 00:33:59 +00:00
|
|
|
, pandas
|
2018-10-25 15:26:45 +00:00
|
|
|
, pytestrunner
|
|
|
|
, pytest
|
2019-01-17 21:18:08 +00:00
|
|
|
, pkgconfig
|
2019-03-05 12:08:45 +00:00
|
|
|
, mock
|
2019-06-19 00:25:40 +00:00
|
|
|
, numpy
|
2019-03-05 12:08:45 +00:00
|
|
|
, requests
|
2019-06-19 00:25:40 +00:00
|
|
|
, uproot-methods
|
|
|
|
, xxhash
|
2018-10-25 15:26:45 +00:00
|
|
|
}:
|
2018-04-26 07:59:20 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "uproot";
|
2020-02-09 19:14:25 +00:00
|
|
|
version = "3.11.2";
|
2018-04-26 07:59:20 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-02-09 19:14:25 +00:00
|
|
|
sha256 = "1bn8z640408s4h04ymy0y79fm5ss2mx99mkgdbw68a80x0p6982h";
|
2018-04-26 07:59:20 +00:00
|
|
|
};
|
|
|
|
|
2019-03-05 12:08:45 +00:00
|
|
|
nativeBuildInputs = [ pytestrunner ];
|
2019-06-19 00:25:40 +00:00
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
lz4
|
|
|
|
mock
|
2019-11-28 00:33:59 +00:00
|
|
|
pandas
|
2019-06-19 00:25:40 +00:00
|
|
|
pkgconfig
|
|
|
|
pytest
|
|
|
|
requests
|
|
|
|
xxhash
|
2019-06-19 01:18:45 +00:00
|
|
|
] ++ lib.optional isPy27 backports_lzma;
|
2019-06-19 00:25:40 +00:00
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
numpy
|
|
|
|
cachetools
|
|
|
|
uproot-methods
|
|
|
|
awkward
|
|
|
|
];
|
|
|
|
|
|
|
|
# skip tests which do network calls
|
2019-12-23 20:37:10 +00:00
|
|
|
# test_compression.py is missing zstandard package
|
2019-06-19 00:25:40 +00:00
|
|
|
checkPhase = ''
|
2019-12-23 20:37:10 +00:00
|
|
|
pytest tests -k 'not hist_in_tree \
|
|
|
|
and not branch_auto_interpretation' \
|
|
|
|
--ignore=tests/test_compression.py
|
2019-06-19 00:25:40 +00:00
|
|
|
'';
|
2018-04-26 07:59:20 +00: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 ];
|
|
|
|
};
|
|
|
|
}
|