at 23.05-pre 1.5 kB view raw
1{ lib 2, awkward 3, buildPythonPackage 4, fetchFromGitHub 5, importlib-metadata 6, lz4 7, numpy 8, packaging 9, pytestCheckHook 10, pythonOlder 11, scikit-hep-testdata 12, xxhash 13, zstandard 14}: 15 16buildPythonPackage rec { 17 pname = "uproot"; 18 version = "4.3.6"; 19 format = "setuptools"; 20 21 disabled = pythonOlder "3.7"; 22 23 src = fetchFromGitHub { 24 owner = "scikit-hep"; 25 repo = "uproot4"; 26 rev = "refs/tags/v${version}"; 27 hash = "sha256-Te4D2tHVD5fD8DH2njjQMGnTUvLQdcGBzApklnGn6g8="; 28 }; 29 30 propagatedBuildInputs = [ 31 awkward 32 numpy 33 lz4 34 packaging 35 xxhash 36 zstandard 37 ] ++ lib.optionals (pythonOlder "3.8") [ 38 importlib-metadata 39 ]; 40 41 checkInputs = [ 42 pytestCheckHook 43 scikit-hep-testdata 44 ]; 45 46 preCheck = '' 47 export HOME="$(mktemp -d)" 48 ''; 49 50 disabledTests = [ 51 # Tests that try to download files 52 "test_http" 53 "test_no_multipart" 54 "test_fallback" 55 "test_pickle_roundtrip_http" 56 ]; 57 58 disabledTestPaths = [ 59 # Tests that try to download files 60 "tests/test_0066-fix-http-fallback-freeze.py" 61 "tests/test_0088-read-with-http.py" 62 "tests/test_0220-contiguous-byte-ranges-in-http.py" 63 ]; 64 65 pythonImportsCheck = [ 66 "uproot" 67 ]; 68 69 meta = with lib; { 70 description = "ROOT I/O in pure Python and Numpy"; 71 homepage = "https://github.com/scikit-hep/uproot5"; 72 changelog = "https://github.com/scikit-hep/uproot5/releases/tag/v${version}"; 73 license = licenses.bsd3; 74 maintainers = with maintainers; [ veprbl ]; 75 }; 76}