easyblock = 'Bundle'

name = 'xonsh'
version = '0.3.2'

homepage = 'http://xon.sh/'
description = """Xonsh is a Python-ish, BASHwards-looking shell language and command prompt."""

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

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

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

exts_list = [
    ('ply', '3.8', {
        'source_urls': ['https://pypi.python.org/packages/source/p/ply/'],
    }),
    ('wcwidth', '0.1.6', {
        'source_urls': ['https://pypi.python.org/packages/source/w/wcwidth/'],
    }),
    ('prompt-toolkit', '1.0.0', {
        'source_urls': ['https://pypi.python.org/packages/source/p/prompt-toolkit/'],
        'source_tmpl': 'prompt_toolkit-%(version)s.tar.gz',
        'modulename': 'prompt_toolkit',
    }),
    ('Pygments', '2.1.3', {
        'source_urls': ['https://pypi.python.org/packages/source/p/Pygments/'],
    }),
    (name, version, {
        'source_urls': ['https://pypi.python.org/packages/source/x/xonsh/'],
    }),
]

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

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

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

moduleclass = 'tools'
