Skip to content

Commit de146ce

Browse files
authored
py-mne-bids: add v0.18.0 (spack#4271)
1 parent 7d58c4f commit de146ce

1 file changed

Lines changed: 39 additions & 28 deletions

File tree

  • repos/spack_repo/builtin/packages/py_mne_bids

repos/spack_repo/builtin/packages/py_mne_bids/package.py

Lines changed: 39 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -17,36 +17,47 @@ class PyMneBids(PythonPackage):
1717

1818
license("BSD-3-Clause")
1919

20+
version("0.18.0", sha256="9db6bbeabc8b465ce17c2356ad11606b871a0116054866a2413a9b313421134a")
2021
version("0.17.0", sha256="e6415bce905d6721eb175f8eab269309cb4b75081f43c782da860a89553ab4bb")
2122
version("0.15.0", sha256="8a3ac7fb586ba2be70eb687c67ae060b42693078c56232180b27161124c22f72")
2223

2324
variant("full", default=False, description="Enable full functionality.")
2425

25-
depends_on("python@3.10:", type=("build", "run"), when="@0.16:")
26-
depends_on("python@3.9:", type=("build", "run"))
27-
# although 0.17 needs py-hatchling==1.26.3 to build according to
28-
# pyproject.toml, it also builds fine with other versions
29-
depends_on("py-hatchling", type="build")
30-
depends_on("py-hatch-vcs", type="build")
31-
32-
depends_on("py-mne@1.8:", type=("build", "run"), when="@0.17:")
33-
depends_on("py-mne@1.5:", type=("build", "run"))
34-
depends_on("py-numpy@1.23:", type=("build", "run"), when="@0.17:")
35-
depends_on("py-numpy@1.21.2:", type=("build", "run"))
36-
depends_on("py-scipy@1.9:", type=("build", "run"), when="@0.17:")
37-
depends_on("py-scipy@1.7.1:", type=("build", "run"))
38-
39-
with when("+full"):
40-
depends_on("py-defusedxml", type=("build", "run"))
41-
depends_on("py-edfio@0.2.1:", type=("build", "run"))
42-
depends_on("py-eeglabio@0.0.2:", type=("build", "run"))
43-
depends_on("py-matplotlib@3.6:", type=("build", "run"), when="@0.17:")
44-
depends_on("py-matplotlib@3.5:", type=("build", "run"))
45-
depends_on("py-nibabel@3.2.1:", type=("build", "run"))
46-
depends_on("py-pandas@1.3.2:", type=("build", "run"))
47-
depends_on("py-pybv@0.7.5:", type=("build", "run"))
48-
depends_on("py-pymatreader", type=("build", "run"))
49-
depends_on("py-pymatreader@0.0.30:", type=("build", "run"), when="@:0.15")
50-
51-
# Historical dependencies
52-
depends_on("py-edflib-python@1.0.6:", type=("build", "run"), when="@:0.15")
26+
with default_args(type="build"):
27+
# although 0.17 needs py-hatchling==1.26.3 to build according to
28+
# pyproject.toml, it also builds fine with other versions
29+
depends_on("py-hatchling")
30+
depends_on("py-hatch-vcs")
31+
32+
with default_args(type=("build", "run")):
33+
depends_on("python@3.11:", when="@0.18:")
34+
depends_on("python@3.10:", when="@0.16:")
35+
depends_on("python@3.9:")
36+
37+
depends_on("py-mne@1.8:", when="@0.17:")
38+
depends_on("py-mne@1.5:")
39+
depends_on("py-numpy@1.23:", when="@0.17:")
40+
depends_on("py-numpy@1.21.2:")
41+
depends_on("py-scipy@1.9:", when="@0.17:")
42+
depends_on("py-scipy@1.7.1:")
43+
44+
with when("+full"):
45+
depends_on("py-curryreader@0.1.2:", when="@0.18:")
46+
depends_on("py-defusedxml")
47+
depends_on("py-edfio@0.4.10:", when="@0.18:")
48+
depends_on("py-edfio@0.2.1:")
49+
depends_on("py-eeglabio@0.1:", when="@0.18:")
50+
depends_on("py-eeglabio@0.0.2:")
51+
depends_on("py-filelock", when="@0.18:")
52+
depends_on("py-matplotlib@3.6:", when="@0.17:")
53+
depends_on("py-matplotlib@3.5:")
54+
depends_on("py-nibabel@3.2.1:")
55+
depends_on("py-pandas@1.3.2:")
56+
depends_on("py-pybv@0.7.5:")
57+
depends_on("py-pymatreader")
58+
depends_on("py-pymatreader@0.0.30:", when="@:0.15")
59+
60+
# Historical dependencies
61+
depends_on("py-edflib-python@1.0.6:", when="@:0.15")
62+
63+
conflicts("py-h5py@3.15.0")

0 commit comments

Comments
 (0)