summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorManuela Kuhn <36827019+manuelakuhn@users.noreply.github.com>2021-10-05 10:07:03 +0200
committerGitHub <noreply@github.com>2021-10-05 10:07:03 +0200
commit4e6f2ede0a8a9291befe262cbec77d3e7cd873b0 (patch)
tree6307ce9378ed19ec09f2a0b32b3f53a2b3fdd6ce /var
parente1fb77496c27d8a505e44981182782b05e2efc56 (diff)
downloadspack-4e6f2ede0a8a9291befe262cbec77d3e7cd873b0.tar.gz
spack-4e6f2ede0a8a9291befe262cbec77d3e7cd873b0.tar.bz2
spack-4e6f2ede0a8a9291befe262cbec77d3e7cd873b0.tar.xz
spack-4e6f2ede0a8a9291befe262cbec77d3e7cd873b0.zip
py-rsatoolbox: add new package (#26514)
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/py-rsatoolbox/package.py31
1 files changed, 31 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/py-rsatoolbox/package.py b/var/spack/repos/builtin/packages/py-rsatoolbox/package.py
new file mode 100644
index 0000000000..9227b67ce3
--- /dev/null
+++ b/var/spack/repos/builtin/packages/py-rsatoolbox/package.py
@@ -0,0 +1,31 @@
+# Copyright 2013-2021 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 import *
+
+
+class PyRsatoolbox(PythonPackage):
+ """Representational Similarity Analysis (RSA) in Python."""
+
+ homepage = "https://github.com/rsagroup/rsatoolbox"
+ pypi = "rsatoolbox/rsatoolbox-0.0.3.tar.gz"
+
+ version('0.0.3', sha256='9bf6e16d9feadc081f9daaaaab7ef38fc1cd64dd8ef0ccd9f74adb5fe6166649')
+
+ depends_on('py-setuptools', type='build')
+ depends_on('py-coverage', type=('build', 'run'))
+ depends_on('py-numpy@1.21.2:', type=('build', 'run'))
+ depends_on('py-scipy', type=('build', 'run'))
+ depends_on('py-scikit-learn', type=('build', 'run'))
+ depends_on('py-scikit-image', type=('build', 'run'))
+ depends_on('py-tqdm', type=('build', 'run'))
+ depends_on('py-h5py', type=('build', 'run'))
+ depends_on('py-matplotlib', type=('build', 'run'))
+ depends_on('py-joblib', type=('build', 'run'))
+
+ def patch(self):
+ # tests are looking for a not existing requirements.txt file
+ with working_dir('tests'):
+ open('requirements.txt', 'a').close()