py-mne: add 1.2.2, 1.2.3 and dependency packages (#34295)

* py-mne: add 1.2.2 and depencendy packages

* py-mne: add 1.2.3

* Remove unnecessary when statement
This commit is contained in:
Manuela Kuhn 2022-12-05 07:02:27 +01:00 committed by GitHub
parent 82b7fe649f
commit 729b1c9fa6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 66 additions and 4 deletions

View File

@ -0,0 +1,22 @@
# 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.package import *
class PyH5io(PythonPackage):
"""Python Objects Onto HDF5."""
homepage = "http://h5io.github.io"
pypi = "h5io/h5io-0.1.7.tar.gz"
git = "https://github.com/h5io/h5io.git"
version("0.1.7", sha256="be2684e678a28a5d59140de838f0165f095af865e48b8e498a279a3c2b89303e")
depends_on("python@3.7:", type=("build", "run"))
depends_on("py-setuptools", type="build")
depends_on("py-numpy", type=("build", "run"))
depends_on("py-h5py", type=("build", "run"))

View File

@ -11,20 +11,39 @@ class PyMne(PythonPackage):
homepage = "http://mne.tools/"
pypi = "mne/mne-0.23.4.tar.gz"
git = "https://github.com/mne-tools/mne-python.git"
version("1.2.3", sha256="b300dcee69ffb878cdbc5c02490e877df385c1b9482622e3aa1da06a604a6e37")
version("1.2.2", sha256="d40743d6ca7ae3919a557166fd5fc4c00a9719e40c07346baad57964e15f02bb")
version("0.23.4", sha256="ecace5caacf10961ebb74cc5e0ead4d4dbc55fed006eab1e644da144092354e9")
version("0.18.2", sha256="aa2e72ad3225efdad39b05e67cd5c88dbd5c3fabf5e1705e459347131f114bc6")
variant("full", default=False, description="Enable full functionality.")
# don't support full variant for newer versions (for now) because dependencies get out of hand
variant("full", default=False, when="@:23", description="Enable full functionality.")
variant("hdf5", default=False, when="@1:", description="Enable hdf5 functionality.")
depends_on("python@3.7:", when="@0.24:", type=("build", "run"))
depends_on("python@3.6:", when="@0.23:", type=("build", "run"))
depends_on("python@3.5:", type=("build", "run"))
depends_on("py-setuptools", type="build")
# requirements_base.txt with versions specified in README.rst (marked with *)
depends_on("py-numpy@1.18.1:", when="@1:", type=("build", "run")) # *
depends_on("py-numpy@1.15.4:", when="@0.23:", type=("build", "run"))
depends_on("py-numpy@1.11.3:", type=("build", "run"))
depends_on("py-scipy@1.4.1:", when="@1:", type=("build", "run")) # *
depends_on("py-scipy@1.1.0:", when="@0.23:", type=("build", "run"))
depends_on("py-scipy@0.17.1:", type=("build", "run"))
depends_on("py-matplotlib@3.1:", when="@1:", type=("build", "run")) # *
depends_on("py-tqdm", when="@1:", type=("build", "run"))
depends_on("py-pooch@1.5:", when="@1:", type=("build", "run"))
depends_on("py-decorator", when="@1:", type=("build", "run"))
depends_on("py-packaging", when="@1:", type=("build", "run"))
depends_on("py-jinja2", when="@1:", type=("build", "run"))
with when("+hdf5"):
depends_on("py-h5io", type=("build", "run"))
depends_on("py-pymatreader", type=("build", "run"))
with when("+full"):
# requirements.txt with versions specified in README.rst (marked with *)
@ -63,6 +82,4 @@ class PyMne(PythonPackage):
depends_on("py-ipyvtk-simple", type=("build", "run"))
# README.rst
# depends_on('py-cupy@4.0:', type=('build', 'run')) # not yet in spack
# depends_on('py-cupy@4.0:', type=('build', 'run')) # not yet in spack

View File

@ -0,0 +1,23 @@
# 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.package import *
class PyPymatreader(PythonPackage):
"""Convenient reader for Matlab mat files."""
homepage = "https://gitlab.com/obob/pymatreader"
pypi = "pymatreader/pymatreader-0.0.30.tar.gz"
version("0.0.30", sha256="c8187b6ee77a9b1ec0d8ccae9b22c9031d01104a412737cc4a71e6d993a1a12b")
depends_on("py-setuptools", type="build")
depends_on("py-h5py", type=("build", "run"))
depends_on("py-scipy@:1.6,1.7.1:", type=("build", "run"))
depends_on("py-numpy", type=("build", "run"))
depends_on("py-xmltodict", type=("build", "run"))
depends_on("py-future", type=("build", "run"))