summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorManuela Kuhn <36827019+manuelakuhn@users.noreply.github.com>2023-10-20 13:55:41 +0200
committerGitHub <noreply@github.com>2023-10-20 06:55:41 -0500
commit00ee72396fbafa766742555a3d21146adfb97479 (patch)
treea99fa0baf0e65b1d0592d6795f7b51b0fabba174
parentaa4d55004cdd134a9ad5d4e35032b6c4644e75a6 (diff)
downloadspack-00ee72396fbafa766742555a3d21146adfb97479.tar.gz
spack-00ee72396fbafa766742555a3d21146adfb97479.tar.bz2
spack-00ee72396fbafa766742555a3d21146adfb97479.tar.xz
spack-00ee72396fbafa766742555a3d21146adfb97479.zip
py-bidscoin: add v4.1.1 and py-argparse-manpage: add new package (#40414)
* py-bidscoin: add 4.1.1 * Fix style * Fix restrictions for dependencies
-rw-r--r--var/spack/repos/builtin/packages/py-argparse-manpage/package.py24
-rw-r--r--var/spack/repos/builtin/packages/py-bidscoin/package.py15
2 files changed, 35 insertions, 4 deletions
diff --git a/var/spack/repos/builtin/packages/py-argparse-manpage/package.py b/var/spack/repos/builtin/packages/py-argparse-manpage/package.py
new file mode 100644
index 0000000000..74108bfbdf
--- /dev/null
+++ b/var/spack/repos/builtin/packages/py-argparse-manpage/package.py
@@ -0,0 +1,24 @@
+# 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 PyArgparseManpage(PythonPackage):
+ """Build manual page from python's ArgumentParser object."""
+
+ homepage = "https://github.com/praiskup/argparse-manpage"
+ pypi = "argparse-manpage/argparse-manpage-4.5.tar.gz"
+
+ version("4.5", sha256="213c061878a10bf0e40f6a293382f6e82409e5110d0683b16ebf87f903d604db")
+
+ variant("setuptools", default=False, description="Enable the setuptools.builds_meta backend")
+
+ depends_on("py-setuptools", type="build")
+ depends_on("py-packaging", type="build")
+
+ depends_on("py-tomli", when="^python@:3.10", type=("build", "run"))
+
+ depends_on("py-setuptools", when="+setuptools", type=("build", "run"))
diff --git a/var/spack/repos/builtin/packages/py-bidscoin/package.py b/var/spack/repos/builtin/packages/py-bidscoin/package.py
index 3c840f6971..a5b7dd8302 100644
--- a/var/spack/repos/builtin/packages/py-bidscoin/package.py
+++ b/var/spack/repos/builtin/packages/py-bidscoin/package.py
@@ -13,20 +13,23 @@ class PyBidscoin(PythonPackage):
homepage = "https://github.com/Donders-Institute/bidscoin"
pypi = "bidscoin/bidscoin-3.7.4.tar.gz"
+ version("4.1.1", sha256="28730e9202d3c44d77c0bbdea9565e00adfdd23e85a6f3f121c1bfce1a7b462b")
version("4.0.0", sha256="3b0c26f2e250e06b6f526cdbee09517e1f339da8035c0a316609b4463d75824d")
version("3.7.4", sha256="efa32238fb7b75e533e7f5cc318ad5a703716d291985435d43f1de4f18402517")
depends_on("python@3.8:", type=("build", "run"))
+ depends_on("py-setuptools@62.2:", when="@4.1:", type="build")
depends_on("py-setuptools@61:", when="@4:", type="build")
depends_on("py-setuptools", type="build")
- depends_on("py-pytest-runner", type="build")
+ depends_on("py-argparse-manpage+setuptools", when="@4.1:", type="build")
depends_on("py-pandas", type=("build", "run"))
depends_on("py-matplotlib", type=("build", "run"))
depends_on("py-numpy", type=("build", "run"))
depends_on("py-pydicom@2:", type=("build", "run"))
- depends_on("py-pyqt5@5.12.1:", type=("build", "run"))
+ depends_on("py-pyqt6", when="@4.1:", type=("build", "run"))
depends_on("py-ruamel-yaml@0.15.35:", type=("build", "run"))
+ depends_on("py-tomli@1.1:", when="@4.1: ^python@:3.10", type=("build", "run"))
depends_on("py-coloredlogs", type=("build", "run"))
depends_on("py-tqdm@4.60:", when="@4:", type=("build", "run"))
depends_on("py-tqdm", type=("build", "run"))
@@ -34,6 +37,10 @@ class PyBidscoin(PythonPackage):
depends_on("py-python-dateutil", type=("build", "run"))
depends_on("py-nibabel", type=("build", "run"))
depends_on("py-bids-validator", when="@4:", type=("build", "run"))
- depends_on("py-pydeface", when="@4:", type=("build", "run"))
- depends_on("py-pytest", when="@4:", type=("build", "run"))
depends_on("dcm2niix", type=("build", "run"))
+
+ # Historical dependencies
+ depends_on("py-pytest-runner", when="@:3", type="build")
+ depends_on("py-pyqt5@5.12.1:", when="@:4.0", type=("build", "run"))
+ depends_on("py-pydeface", when="@4.0", type=("build", "run"))
+ depends_on("py-pytest", when="@4.0", type=("build", "run"))