summaryrefslogtreecommitdiff
path: root/var/spack/repos/builtin/packages/py-pysurfer/package.py
blob: c43dd26d7da10fbcaebbe6ee5b62ae883be12483 (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
# Copyright 2013-2023 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.package import *


class PyPysurfer(PythonPackage):
    """Cortical neuroimaging visualization in Python."""

    homepage = "https://github.com/nipy/PySurfer"
    pypi = "pysurfer/pysurfer-0.11.0.tar.gz"

    license("BSD-3-Clause")

    version("0.11.0", sha256="ae709b6f933694f1810eb3c8f517bdb76c13576d74a7a5a1704e05239df0a179")

    variant("save_movie", default=False, description="Enable save_movie support")

    depends_on("python@3.6:", type=("build", "run"))
    depends_on("py-setuptools", type="build")
    depends_on("py-numpy", type=("build", "run"))
    depends_on("py-scipy", type=("build", "run"))
    depends_on("py-matplotlib", type=("build", "run"))
    depends_on("py-nibabel@1.2:", type=("build", "run"))
    depends_on("py-mayavi", type=("build", "run"))

    depends_on("py-imageio@1.5:", when="+save_movie", type=("build", "run"))