summaryrefslogtreecommitdiff
path: root/var/spack/repos/builtin/packages/py-uproot4/package.py
blob: cf730310a4ec434244b1690bf869608fec95e3ed (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
# Copyright 2013-2022 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 PyUproot4(PythonPackage):
    """DEPRECATED! This package was renamed to py-uproot.

    ROOT I/O in pure Python and NumPy."""

    homepage = "https://uproot4.readthedocs.io"
    git      = "https://github.com/scikit-hep/uproot4"
    url      = "https://github.com/scikit-hep/uproot4/archive/0.0.27.tar.gz"

    maintainers = ['vvolkl']

    tags = ['hep']

    version('master', branch='master', deprecated=True)
    version('4.0.2',
            sha256='8145af29788cbe6bf0ee279a7f176159f3eee801641ead4ad6e627f8c4dff0a9',
            deprecated=True)
    version('0.1.2',
            sha256='b32dbffadc87bc5707ee0093964d2ce4a5ccfd521b17bbf10732afc25b820d82',
            deprecated=True)
    version('0.0.27',
            sha256='de87555937332998b476f3e310392962bc983bddc008ed2b3c07a25c0379c4c9',
            deprecated=True)

    variant('xrootd', default=True,
            description='Build with xrootd support ')
    variant('lz4', default=True,
            description='Build with support for reading '
                        'lz4-compressed rootfiles ')

    variant('zstd', default=True,
            description='Build with support for reading '
                        'zstd-compressed rootfiles ')

    depends_on('py-setuptools', type='build')
    depends_on('py-numpy', type=('build', 'run'))

    depends_on('xrootd', when="+xrootd")

    depends_on('lz4', when="+lz4")
    depends_on('xxhash', when="+lz4")

    depends_on('zstd', when="+zstd")