summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorManuela Kuhn <36827019+manuelakuhn@users.noreply.github.com>2021-09-26 09:44:18 +0200
committerGitHub <noreply@github.com>2021-09-26 07:44:18 +0000
commit3b323d6c90931c013a5f750d807fe60979327ab8 (patch)
treec898987e5604d13b4beeb8c410ef1f83095f107d
parent7ca657aef649f3461093df33912aa223f4139d0d (diff)
downloadspack-3b323d6c90931c013a5f750d807fe60979327ab8.tar.gz
spack-3b323d6c90931c013a5f750d807fe60979327ab8.tar.bz2
spack-3b323d6c90931c013a5f750d807fe60979327ab8.tar.xz
spack-3b323d6c90931c013a5f750d807fe60979327ab8.zip
py-datalad-metalad: add new package (#26225)
Added py-nose for import and a simple installtest from appveyor.yml Co-authored-by: Bernhard Kaindl <bernhardkaindl7@gmail.com>
-rw-r--r--var/spack/repos/builtin/packages/py-datalad-metalad/package.py25
1 files changed, 25 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/py-datalad-metalad/package.py b/var/spack/repos/builtin/packages/py-datalad-metalad/package.py
new file mode 100644
index 0000000000..f62aada369
--- /dev/null
+++ b/var/spack/repos/builtin/packages/py-datalad-metalad/package.py
@@ -0,0 +1,25 @@
+# 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 PyDataladMetalad(PythonPackage):
+ """DataLad extension for semantic metadata handling"""
+
+ homepage = "https://github.com/datalad/datalad-metalad/"
+ pypi = "datalad_metalad/datalad_metalad-0.2.1.tar.gz"
+
+ version('0.2.1', sha256='70fe423136a168f7630b3e0ff1951e776d61e7d5f36670bddf24299ac0870285')
+
+ depends_on('py-setuptools', type=('build'))
+ depends_on('py-datalad@0.12.3:', type=('build', 'run'))
+ depends_on('git-annex', type=('run'))
+ depends_on('py-nose', type=('run', 'test'))
+
+ install_time_test_callbacks = ['test', 'installtest']
+
+ def installtest(self):
+ which('datalad')('wtf')