at 23.05-pre 1.1 kB view raw
1{ lib, fetchFromGitHub, buildPythonPackage, isPy27 2, awkward0, backports_lzma ? null, cachetools, lz4, pandas 3, pytestCheckHook, pkgconfig, mock 4, numpy, requests, uproot3-methods, xxhash, zstandard 5}: 6 7buildPythonPackage rec { 8 pname = "uproot3"; 9 version = "3.14.4"; 10 11 src = fetchFromGitHub { 12 owner = "scikit-hep"; 13 repo = "uproot3"; 14 rev = version; 15 sha256 = "sha256-hVJpKdYvyoCPyqgZzKYp30SvkYm+HWSNBdd9bYCYACE="; 16 }; 17 18 postPatch = '' 19 substituteInPlace setup.py \ 20 --replace '"pytest-runner"' "" 21 ''; 22 23 propagatedBuildInputs = [ 24 awkward0 25 cachetools 26 lz4 27 numpy 28 uproot3-methods 29 xxhash 30 zstandard 31 ] ++ lib.optional isPy27 backports_lzma; 32 33 checkInputs = [ 34 mock 35 pandas 36 pkgconfig 37 pytestCheckHook 38 requests 39 ] ++ lib.optional isPy27 backports_lzma; 40 41 meta = with lib; { 42 homepage = "https://github.com/scikit-hep/uproot3"; 43 description = "ROOT I/O in pure Python and Numpy"; 44 license = licenses.bsd3; 45 maintainers = with maintainers; [ ktf SuperSandro2000 ]; 46 }; 47}