2020-12-07 13:04:28 +00:00
|
|
|
{ lib, fetchFromGitHub, buildPythonPackage, isPy27
|
2021-03-24 16:45:56 +00:00
|
|
|
, awkward0, backports_lzma ? null, cachetools, lz4, pandas
|
2021-02-13 02:29:57 +00:00
|
|
|
, pytestCheckHook, pkgconfig, mock
|
2020-12-07 13:04:28 +00:00
|
|
|
, numpy, requests, uproot3-methods, xxhash, zstandard
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "uproot3";
|
2021-02-13 02:29:57 +00:00
|
|
|
version = "3.14.4";
|
2020-12-07 13:04:28 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "scikit-hep";
|
|
|
|
repo = "uproot3";
|
|
|
|
rev = version;
|
2021-02-13 02:29:57 +00:00
|
|
|
sha256 = "sha256-hVJpKdYvyoCPyqgZzKYp30SvkYm+HWSNBdd9bYCYACE=";
|
2020-12-07 13:04:28 +00:00
|
|
|
};
|
|
|
|
|
2021-02-13 02:29:57 +00:00
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace setup.py \
|
|
|
|
--replace '"pytest-runner"' ""
|
|
|
|
'';
|
2020-12-07 13:04:28 +00:00
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
awkward0
|
|
|
|
cachetools
|
|
|
|
lz4
|
|
|
|
numpy
|
|
|
|
uproot3-methods
|
|
|
|
xxhash
|
|
|
|
zstandard
|
|
|
|
] ++ lib.optional isPy27 backports_lzma;
|
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
mock
|
|
|
|
pandas
|
|
|
|
pkgconfig
|
|
|
|
pytestCheckHook
|
|
|
|
requests
|
|
|
|
] ++ lib.optional isPy27 backports_lzma;
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://github.com/scikit-hep/uproot3";
|
|
|
|
description = "ROOT I/O in pure Python and Numpy";
|
|
|
|
license = licenses.bsd3;
|
|
|
|
maintainers = with maintainers; [ ktf SuperSandro2000 ];
|
|
|
|
};
|
|
|
|
}
|