diff --git a/pkgs/development/python-modules/uproot/default.nix b/pkgs/development/python-modules/uproot/default.nix index 59fc3517bfb..6ea96c63aa0 100644 --- a/pkgs/development/python-modules/uproot/default.nix +++ b/pkgs/development/python-modules/uproot/default.nix @@ -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;