pythonPackages.uproot: 3.4.19 -> 3.7.0

This commit is contained in:
Jonathan Ringer 2019-06-18 17:25:40 -07:00
parent c786f67096
commit 3c2fc5fe45

View File

@ -1,33 +1,48 @@
{ lib
, fetchPypi
, buildPythonPackage
, numpy
, uproot-methods
{ lib, fetchPypi, buildPythonPackage
, awkward
, cachetools
, pythonOlder
, lz4
, pytestrunner
, pytest
, pkgconfig
, lz4
, mock
, numpy
, requests
, backports_lzma
, uproot-methods
, xxhash
}:
buildPythonPackage rec {
pname = "uproot";
version = "3.4.19";
version = "3.7.0";
src = fetchPypi {
inherit pname version;
sha256 = "1df24d1f193b044cc4d6ef98e183a853655b568b7b15173d88b0d2a79e1226da";
sha256 = "0glsl57ha0d4pn5q318dmzml7crml1h8yilbhxh768wcs2030s1g";
};
nativeBuildInputs = [ pytestrunner ];
checkInputs = [ pytest pkgconfig lz4 mock requests ]
++ lib.optionals (pythonOlder "3.3") [ backports_lzma ];
propagatedBuildInputs = [ numpy cachetools uproot-methods awkward ];
checkInputs = [
lz4
mock
pkgconfig
pytest
requests
xxhash
];
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'
'';
meta = with lib; {
homepage = https://github.com/scikit-hep/uproot;