2021-06-04 09:07:49 +00:00
|
|
|
{ lib
|
|
|
|
, fetchFromGitHub
|
|
|
|
, buildPythonPackage
|
|
|
|
, awkward
|
|
|
|
, numpy
|
|
|
|
, lz4
|
|
|
|
, xxhash
|
|
|
|
, zstandard
|
|
|
|
, pytestCheckHook
|
|
|
|
, scikit-hep-testdata
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "uproot";
|
2021-09-18 10:52:07 +00:00
|
|
|
version = "4.1.1";
|
2021-06-04 09:07:49 +00:00
|
|
|
|
|
|
|
# fetch from github for tests
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "scikit-hep";
|
|
|
|
repo = "uproot4";
|
|
|
|
rev = version;
|
2021-09-18 10:52:07 +00:00
|
|
|
sha256 = "sha256-qh/rtZDE6L1IQJjzE+ns0eSG1BKbES7s3A/35hc+tXg=";
|
2021-06-04 09:07:49 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
awkward
|
|
|
|
numpy
|
|
|
|
lz4
|
|
|
|
xxhash
|
|
|
|
zstandard
|
|
|
|
];
|
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
pytestCheckHook
|
|
|
|
scikit-hep-testdata
|
|
|
|
];
|
|
|
|
preCheck = ''
|
|
|
|
export HOME="$(mktemp -d)"
|
|
|
|
'';
|
|
|
|
disabledTests = [
|
|
|
|
# tests that try to download files
|
|
|
|
"test_http"
|
|
|
|
"test_no_multipart"
|
|
|
|
"test_fallback"
|
|
|
|
"test_pickle_roundtrip_http"
|
|
|
|
];
|
|
|
|
disabledTestPaths = [
|
|
|
|
# tests that try to download files
|
|
|
|
"tests/test_0066-fix-http-fallback-freeze.py"
|
|
|
|
"tests/test_0088-read-with-http.py"
|
|
|
|
"tests/test_0220-contiguous-byte-ranges-in-http.py"
|
|
|
|
];
|
|
|
|
pythonImportsCheck = [ "uproot" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://github.com/scikit-hep/uproot4";
|
|
|
|
description = "ROOT I/O in pure Python and Numpy";
|
|
|
|
license = licenses.bsd3;
|
|
|
|
maintainers = with maintainers; [ veprbl ];
|
|
|
|
};
|
|
|
|
}
|