diff options
Diffstat (limited to 'var')
-rw-r--r-- | var/spack/repos/builtin/packages/py-uproot/package.py | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/py-uproot/package.py b/var/spack/repos/builtin/packages/py-uproot/package.py new file mode 100644 index 0000000000..7cd64a580e --- /dev/null +++ b/var/spack/repos/builtin/packages/py-uproot/package.py @@ -0,0 +1,26 @@ +# Copyright 2013-2021 Lawrence Livermore National Security, LLC and other +# Spack Project Developers. See the top-level COPYRIGHT file for details. +# +# SPDX-License-Identifier: (Apache-2.0 OR MIT) + +from spack import * + + +class PyUproot(PythonPackage): + """ROOT I/O in pure Python and NumPy. + + Uproot is a reader and a writer of the ROOT file format using only Python + and Numpy. Unlike the standard C++ ROOT implementation, Uproot is only an + I/O library, primarily intended to stream data into machine learning + libraries in Python. Unlike PyROOT and root_numpy, Uproot does not depend + on C++ ROOT. Instead, it uses Numpy to cast blocks of data from the ROOT + file as Numpy arrays.""" + + homepage = "https://github.com/scikit-hep/uproot4" + pypi = "uproot/uproot-4.0.6.tar.gz" + + version('4.0.6', sha256='1bea2ccc899c6959fb2af69d7e5d1e2df210caab30d3510e26f3fc07c143c37e') + + depends_on('python@2.6:2.999,3.5:', type=('build', 'run')) + depends_on('py-setuptools', type='build') + depends_on('py-numpy', type=('build', 'run')) |