spack/var/spack/repos/builtin/packages/py-uproot3/package.py
Glenn Johnson ef188a1e12
new package: gatetools (#22659)
* new package: gatetools

This PR adds the gatetools package and dependencies. The gatetools
package is a set of command line tools for gate. Since it is primarily a
CLI, although python modules can be loaded, it is named gatetools as
opposed to py-gatetools.

* Fix quote characterss to avoid test error

* Found another UTF8 character that was tripping up tests

* Another UTF-8 character to replace

* Remove py-python-box dependency and package file

* Make numpy a variant

- py-setuptools needs to be a run dependendency
  This was masked by py-numpy having py-setuptools as a run dependency.

* Add missing build depency on py-pytest-runner
2021-04-07 17:39:53 +00:00

31 lines
1.3 KiB
Python

# 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 PyUproot3(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/uproot3"
pypi = "uproot3/uproot3-3.14.4.tar.gz"
version('3.14.4', sha256='4396746ba5ef9071bb0a9da53294e4613a7f4548218940f86496e79d682d20eb')
depends_on('python@2.7:2.9,3.5:', type=('build', 'run'))
depends_on('py-setuptools', type='build')
depends_on('py-pytest-runner', type='build')
depends_on('py-numpy@1.13.1:', type=('build', 'run'))
depends_on('py-awkward0', type=('build', 'run'))
depends_on('py-uproot3-methods', type=('build', 'run'))
depends_on('py-cachetools', type=('build', 'run'))