{ lib, fetchPypi, buildPythonPackage, isPy27 , awkward , backports_lzma , cachetools , lz4 , pandas , pytestrunner , pytest , pkgconfig , mock , numpy , requests , uproot-methods , xxhash }: buildPythonPackage rec { pname = "uproot"; version = "3.10.10"; src = fetchPypi { inherit pname version; sha256 = "2c780472c5c328d2e34508db1da399038653142572fc3d0b5777b2311edabd83"; }; nativeBuildInputs = [ pytestrunner ]; checkInputs = [ lz4 mock pandas pkgconfig pytest requests xxhash ] ++ lib.optional isPy27 backports_lzma; 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; description = "ROOT I/O in pure Python and Numpy"; license = licenses.bsd3; maintainers = with maintainers; [ ktf ]; }; }