summaryrefslogtreecommitdiff
path: root/var/spack/repos/builtin/packages/py-cinemasci/package.py
blob: e0cd6e4d0333c54985d757ceffedc75a511bef4d (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
# 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 PyCinemasci(PythonPackage):
    """A set of python tools for reading, writing and viewing Cinema
    databases"""

    homepage = "https://github.com/cinemascience"
    pypi = "cinemasci/cinemasci-1.7.0.tar.gz"

    tags = ['e4s']

    maintainers = ['EthanS94']

    version('1.7.0', sha256='70e1fa494bcbefdbd9e8859cdf1b01163a94ecffcdfa3da1011e4ef2fcee6169')
    version('1.3', sha256='c024ca9791de9d78e5dad3fd11e8f87d8bc1afa5830f2697d7ec4116a5d23c20')

    variant('mpi', default=False, description='Enable MPI')

    depends_on('hdf5 ~mpi', when='~mpi')
    depends_on('hdf5 +mpi', when='+mpi')
    depends_on('pil', type=('build', 'run'))
    depends_on('python@3:', type=('build', 'run'))
    depends_on('py-h5py~mpi', when='~mpi', type=('build', 'run'))
    depends_on('py-h5py+mpi', when='+mpi', type=('build', 'run'))
    depends_on('py-ipywidgets', type=('build', 'run'))
    depends_on('py-jupyterlab', type=('build', 'run'))
    depends_on('py-matplotlib', type=('build', 'run'), when='@1.7.0:')
    depends_on('py-pandas', type=('build', 'run'))
    depends_on('py-pyyaml', type=('build', 'run'), when='@1.7.0:')
    depends_on('py-scikit-image', type=('build', 'run'), when='@1.7.0:')
    depends_on('py-scipy', type=('build', 'run'), when='@1.7.0:')
    depends_on('py-setuptools', type=('build'))