From 1ed7762327e0bdc4be4a1780f3bd2d4c8c3db533 Mon Sep 17 00:00:00 2001 From: Glenn Johnson Date: Wed, 31 Mar 2021 10:57:34 -0500 Subject: new package: py-uproot (#22658) --- .../repos/builtin/packages/py-uproot/package.py | 26 ++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 var/spack/repos/builtin/packages/py-uproot/package.py 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')) -- cgit v1.2.3-60-g2f50