summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorGlenn Johnson <glenn-johnson@uiowa.edu>2021-03-31 10:57:34 -0500
committerGitHub <noreply@github.com>2021-03-31 10:57:34 -0500
commit1ed7762327e0bdc4be4a1780f3bd2d4c8c3db533 (patch)
tree27f6d22380461ff798c8a0df771f2a9871ec9a64 /var
parentbee9e34b501bccf658bbc7ff744fcf1dbcde50de (diff)
downloadspack-1ed7762327e0bdc4be4a1780f3bd2d4c8c3db533.tar.gz
spack-1ed7762327e0bdc4be4a1780f3bd2d4c8c3db533.tar.bz2
spack-1ed7762327e0bdc4be4a1780f3bd2d4c8c3db533.tar.xz
spack-1ed7762327e0bdc4be4a1780f3bd2d4c8c3db533.zip
new package: py-uproot (#22658)
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/py-uproot/package.py26
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'))