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>
This commit is contained in:
Manuela Kuhn 2021-09-26 09:44:18 +02:00 committed by GitHub
parent 7ca657aef6
commit 3b323d6c90
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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')