easyblock = 'PythonPackage'

name = 'meshio'
version = '1.7.1'
versionsuffix = '-Python-%(pyver)s'

homepage = 'https://github.com/nschloe/meshio'
description = "meshio is a tool for reading/writing various mesh formats representing unstructured meshes"

toolchain = {'name': 'intel', 'version': '2016b'}

source_urls = [PYPI_SOURCE]
sources = [SOURCE_TAR_GZ]

dependencies = [
    ('Python', '2.7.12'),  # includes numpy
    ('h5py', '2.6.0', versionsuffix + '-HDF5-1.8.18'),
    ('VTK', '6.3.0', versionsuffix),
]

exts_defaultclass = 'PythonPackage'
exts_list = [
    ('appdirs', '1.4.0', {
        'source_urls': ['https://pypi.python.org/packages/source/a/appdirs'],
    }),
    ('requests', '2.13.0', {
        'source_urls': ['https://pypi.python.org/packages/source/r/requests/'],
    }),
    ('pipdated', '0.1.4', {
        'source_urls': ['https://pypi.python.org/packages/source/p/pipdated'],
    }),
]

sanity_check_paths = {
    'files': ['bin/meshio-convert'],
    'dirs': ['lib/python%(pyshortver)s/site-packages'],
}

moduleclass = 'cae'
