easyblock = 'ConfigureMake'

name = 'Subunit'
version = '0.0.21'
versionsuffix = '-Python-%(pyver)s'

homepage = 'https://gogs.elic.ucl.ac.be'
description = """This repo provides additional extensions for ELIC ecosystem."""

toolchain = {'name': 'GCCcore', 'version': '10.2.0'}

source_urls = ['ftp://ftp.unidata.ucar.edu/pub/udunits']
sources = [SOURCELOWER_TAR_GZ]

dependencies = [
    ('Python', '3.8.6'),
    ('Perl', '5.32.0'),
    ('Check', '0.15.2'),
    ('CppUnit', '1.15.1'),
]

builddependencies = [
    ('pkg-config', '0.29.2'),
]

#modextrapaths = {'PYTHONPATH': 'lib/python%(pyshortver)s/site-packages'}

sanity_check_paths = {
    'files': ['bin/subunit-ls', 'lib/libsubunit.so.0.0.0', 'lib/libsubunit.a', 'include/subunit/SubunitTestProgressListener.h'],
    'dirs': ['lib/python%(pyshortver)s/site-packages/subunit'],
}

moduleclass = 'tools'
