easyblock = 'Bundle'

name = 'ipyrad'
version = '0.6.15'
versionsuffix = '-Python-%(pyver)s'

homepage = 'https://ipyrad.readthedocs.io'
description = """ipyrad is an interactive toolkit for assembly and analysis of restriction-site associated genomic
 data sets (e.g., RAD, ddRAD, GBS) for population genetic and phylogenetic studies."""

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

exts_defaultclass = 'PythonPackage'
exts_filter = ("python -c 'import %(ext_name)s'", '')

dependencies = [
    ('Python', '2.7.13'),
    ('h5py', '2.7.0', versionsuffix),
    ('numba', '0.32.0', versionsuffix),
    ('IPython', '5.3.0', versionsuffix),
    ('Pillow', '4.1.0', versionsuffix),
]

exts_list = [
    ('imagesize', '0.7.1', {
        'source_urls': ['https://pypi.python.org/packages/source/i/imagesize'],
    }),
    ('alabaster', '0.7.10', {
        'source_urls': ['https://pypi.python.org/packages/source/a/alabaster'],
    }),
    ('Babel', '2.4.0', {
        'source_urls': ['https://pypi.python.org/packages/source/B/Babel'],
    }),
    ('snowballstemmer', '1.2.1', {
        'source_urls': ['https://pypi.python.org/packages/source/s/snowballstemmer'],
    }),
    ('docutils', '0.13.1', {
        'source_urls': ['https://pypi.python.org/packages/source/d/docutils'],
    }),
    ('Sphinx', '1.5.5', {
        'source_urls': ['https://pypi.python.org/packages/source/S/Sphinx'],
    }),
    ('networkx', '1.11', {
        'source_urls': ['https://pypi.python.org/packages/source/n/networkx'],
    }),
    ('jupyter', '1.0.0', {
        'source_urls': ['https://pypi.python.org/packages/source/j/jupyter'],
    }),
    ('ipyparallel', '6.0.2', {
        'source_urls': ['https://pypi.python.org/packages/source/i/ipyparallel'],
    }),
    ('webencodings', '0.5.1', {
        'source_urls': ['https://pypi.python.org/packages/source/w/webencodings'],
    }),
    ('html5lib', '0.999999999', {
        'source_urls': ['https://pypi.python.org/packages/source/h/html5lib'],
    }),
    ('bleach', '2.0.0', {
        'source_urls': ['https://pypi.python.org/packages/source/b/bleach'],
    }),
    ('jupyter-console', '5.1.0', {
        'modulename': 'jupyter_console',
        'source_urls': ['https://pypi.python.org/packages/source/j/jupyter_console'],
        'source_tmpl': 'jupyter_console-%(version)s.tar.gz',
    }),
    ('qtconsole', '4.3.0', {
        'source_urls': ['https://pypi.python.org/packages/source/q/qtconsole'],
    }),
    ('futures', '3.1.1', {
        'modulename': 'concurrent.futures',
        'source_urls': ['https://pypi.python.org/packages/source/f/futures'],
    }),
    ('arrow', '0.10.0', {
        'source_urls': ['https://pypi.python.org/packages/source/a/arrow'],
    }),
    ('colormath', '2.1.1', {
        'source_urls': ['https://pypi.python.org/packages/source/c/colormath'],
    }),
    ('multipledispatch', '0.4.9', {
        'source_urls': ['https://pypi.python.org/packages/source/m/multipledispatch'],
    }),
    ('pypng', '0.0.18', {
        'modulename': 'png',
        'source_urls': ['https://pypi.python.org/packages/source/p/pypng'],
    }),
    ('olefile', '0.44', {
        'source_urls': ['https://pypi.python.org/packages/source/o/olefile'],
        'source_tmpl': 'olefile-%(version)s.zip',
    }),
    ('reportlab', '3.4.0', {
        'source_urls': ['https://pypi.python.org/packages/source/r/reportlab'],
    }),
    ('toyplot', '0.14.0', {
        'source_urls': ['https://pypi.python.org/packages/source/t/toyplot'],
    }),
    (name, version, {
        'source_urls': ['https://github.com/dereneaton/ipyrad/archive/'],
        'source_tmpl': '%(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

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

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

moduleclass = 'bio'
