summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorManuela Kuhn <36827019+manuelakuhn@users.noreply.github.com>2022-07-28 18:59:34 +0200
committerGitHub <noreply@github.com>2022-07-28 09:59:34 -0700
commitfc4d74b1327e0335a4663192dea3045d4a6e2b7b (patch)
treed13e633b0cf11cac6bd39a2837c40dd392096183 /var
parent9ec05f045f320b1779900ee09ded325c5f8ca7af (diff)
downloadspack-fc4d74b1327e0335a4663192dea3045d4a6e2b7b.tar.gz
spack-fc4d74b1327e0335a4663192dea3045d4a6e2b7b.tar.bz2
spack-fc4d74b1327e0335a4663192dea3045d4a6e2b7b.tar.xz
spack-fc4d74b1327e0335a4663192dea3045d4a6e2b7b.zip
py-rsatoolbox: add 0.0.4 (#31785)
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/py-petname/package.py18
-rw-r--r--var/spack/repos/builtin/packages/py-rsatoolbox/package.py6
2 files changed, 24 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/py-petname/package.py b/var/spack/repos/builtin/packages/py-petname/package.py
new file mode 100644
index 0000000000..c4c9082890
--- /dev/null
+++ b/var/spack/repos/builtin/packages/py-petname/package.py
@@ -0,0 +1,18 @@
+# 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 PyPetname(PythonPackage):
+ """Generate human-readable, random object names."""
+
+ homepage = "https://launchpad.net/python-petname"
+ pypi = "petname/petname-2.6.tar.gz"
+
+ version('2.6', sha256='981c31ef772356a373640d1bb7c67c102e0159eda14578c67a1c99d5b34c9e4c')
+ version('2.2', sha256='be1da50a6aa01e39840e9a4b79b527a333b256733cb681f52669c08df7819ace')
+
+ depends_on('py-setuptools', type='build')
diff --git a/var/spack/repos/builtin/packages/py-rsatoolbox/package.py b/var/spack/repos/builtin/packages/py-rsatoolbox/package.py
index a971cf7bbf..a47cbb7bb2 100644
--- a/var/spack/repos/builtin/packages/py-rsatoolbox/package.py
+++ b/var/spack/repos/builtin/packages/py-rsatoolbox/package.py
@@ -11,7 +11,10 @@ class PyRsatoolbox(PythonPackage):
homepage = "https://github.com/rsagroup/rsatoolbox"
pypi = "rsatoolbox/rsatoolbox-0.0.3.tar.gz"
+ git = "https://github.com/rsagroup/rsatoolbox.git"
+ version('main', branch='main')
+ version('0.0.4', sha256='84153fa4c686c95f3e83f2cb668b97b82b53dc2a565856db80aa5f8c96d09359')
version('0.0.3', sha256='9bf6e16d9feadc081f9daaaaab7ef38fc1cd64dd8ef0ccd9f74adb5fe6166649')
depends_on('py-setuptools', type='build')
@@ -24,7 +27,10 @@ class PyRsatoolbox(PythonPackage):
depends_on('py-h5py', type=('build', 'run'))
depends_on('py-matplotlib', type=('build', 'run'))
depends_on('py-joblib', type=('build', 'run'))
+ depends_on('py-petname@2.2', when='@0.0.4:', type=('build', 'run'))
+ depends_on('py-pandas', when='@0.0.4:', type=('build', 'run'))
+ @when('@:0.0.3')
def patch(self):
# tests are looking for a not existing requirements.txt file
with working_dir('tests'):