at 22.05-pre 1.2 kB view raw
1{ lib 2, fetchFromGitHub 3, buildPythonPackage 4, awkward 5, numpy 6, lz4 7, xxhash 8, zstandard 9, pytestCheckHook 10, scikit-hep-testdata 11}: 12 13buildPythonPackage rec { 14 pname = "uproot"; 15 version = "4.1.5"; 16 17 # fetch from github for tests 18 src = fetchFromGitHub { 19 owner = "scikit-hep"; 20 repo = "uproot4"; 21 rev = version; 22 sha256 = "sha256-zsmAdqoWvFhRRRw4fdbRhhKkDV5oP/eYsfpA0AVqAnI="; 23 }; 24 25 propagatedBuildInputs = [ 26 awkward 27 numpy 28 lz4 29 xxhash 30 zstandard 31 ]; 32 33 checkInputs = [ 34 pytestCheckHook 35 scikit-hep-testdata 36 ]; 37 preCheck = '' 38 export HOME="$(mktemp -d)" 39 ''; 40 disabledTests = [ 41 # tests that try to download files 42 "test_http" 43 "test_no_multipart" 44 "test_fallback" 45 "test_pickle_roundtrip_http" 46 ]; 47 disabledTestPaths = [ 48 # tests that try to download files 49 "tests/test_0066-fix-http-fallback-freeze.py" 50 "tests/test_0088-read-with-http.py" 51 "tests/test_0220-contiguous-byte-ranges-in-http.py" 52 ]; 53 pythonImportsCheck = [ "uproot" ]; 54 55 meta = with lib; { 56 homepage = "https://github.com/scikit-hep/uproot4"; 57 description = "ROOT I/O in pure Python and Numpy"; 58 license = licenses.bsd3; 59 maintainers = with maintainers; [ veprbl ]; 60 }; 61}