easyblock = 'Bundle'

name = 'mypy'
version = '0.4.5'

homepage = 'http://www.mypy-lang.org/'
description = """Optional static typing for Python"""

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

# this is a bundle of Python packages
exts_defaultclass = 'PythonPackage'

dependencies = [('Python', '3.5.2')]

exts_list = [
    ('typed-ast', '0.6.1', {
        'source_urls': ['https://pypi.python.org/packages/source/t/typed-ast'],
        'modulename': 'typed_ast',
    }),
    (name, version, {
        'source_urls': ['https://pypi.python.org/packages/source/m/mypy-lang'],
        'source_tmpl': 'mypy-lang-%(version)s.tar.gz',
    }),
]

# specify that Bundle easyblock should run a full sanity check, rather than just trying to load the module
full_sanity_check = True

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

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

moduleclass = 'lang'
