Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 20.09-beta 59 lines 1.1 kB view raw
1{ lib, fetchPypi, buildPythonPackage, isPy27 2, awkward 3, backports_lzma 4, cachetools 5, lz4 6, pandas 7, pytestrunner 8, pytest 9, pkgconfig 10, mock 11, numpy 12, requests 13, uproot-methods 14, xxhash 15}: 16 17buildPythonPackage rec { 18 pname = "uproot"; 19 version = "3.12.0"; 20 21 src = fetchPypi { 22 inherit pname version; 23 sha256 = "1603140896b9d3495cedeee2b872e97759085777c1299317072ad3f415211abc"; 24 }; 25 26 nativeBuildInputs = [ pytestrunner ]; 27 28 checkInputs = [ 29 lz4 30 mock 31 pandas 32 pkgconfig 33 pytest 34 requests 35 xxhash 36 ] ++ lib.optional isPy27 backports_lzma; 37 38 propagatedBuildInputs = [ 39 numpy 40 cachetools 41 uproot-methods 42 awkward 43 ]; 44 45 # skip tests which do network calls 46 # test_compression.py is missing zstandard package 47 checkPhase = '' 48 pytest tests -k 'not hist_in_tree \ 49 and not branch_auto_interpretation' \ 50 --ignore=tests/test_compression.py 51 ''; 52 53 meta = with lib; { 54 homepage = "https://github.com/scikit-hep/uproot"; 55 description = "ROOT I/O in pure Python and Numpy"; 56 license = licenses.bsd3; 57 maintainers = with maintainers; [ ktf ]; 58 }; 59}