From 3b323d6c90931c013a5f750d807fe60979327ab8 Mon Sep 17 00:00:00 2001 From: Manuela Kuhn <36827019+manuelakuhn@users.noreply.github.com> Date: Sun, 26 Sep 2021 09:44:18 +0200 Subject: [PATCH] py-datalad-metalad: add new package (#26225) Added py-nose for import and a simple installtest from appveyor.yml Co-authored-by: Bernhard Kaindl --- .../packages/py-datalad-metalad/package.py | 25 +++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 var/spack/repos/builtin/packages/py-datalad-metalad/package.py 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')