# This file is an EasyBuild reciPY as per https://github.com/easybuilders/easybuild
# Adam Huffman
# The Francis Crick Institute
# Elements derived from work by Pablo Escobar
# sciCORE - University of Basel
# SIB Swiss Institute of Bioinformatics 

easyblock = 'Bundle'

name = 'MultiQC'
version = '0.9'
versionsuffix = '-Python-%(pyver)s'

homepage = 'http://multiqc.info'
description = """Aggregate results from bioinformatics analyses across many samples into a single 
 report.

 MultiQC searches a given directory for analysis logs and compiles a HTML report. It's a general
 use tool, perfect for summarising the output from numerous bioinformatics tools."""

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

dependencies = [
    ('Python', '2.7.12'),
    ('matplotlib', '2.0.0', versionsuffix),
]

exts_defaultclass = 'PythonPackage'

exts_list = [
    ('six', '1.10.0', {
        'source_urls': ['https://pypi.python.org/packages/source/s/six/'],
    }),
    ('pyparsing', '2.1.9', {
        'source_urls': ['https://pypi.python.org/packages/source/p/pyparsing/'],
    }),
    ('pytz', '2016.6.1', {
        'source_urls': ['https://pypi.python.org/packages/source/p/pytz/'],
    }),
    ('cycler', '0.10.0', {
        'source_urls': ['https://pypi.python.org/packages/source/c/cycler/'],
    }),
    ('python-dateutil', '2.5.3', {
        'source_urls': ['https://pypi.python.org/packages/source/p/python-dateutil/'],
        'modulename': 'dateutil',
    }),
    ('MarkupSafe', '0.23', {
        'source_urls': ['https://pypi.python.org/packages/source/m/markupsafe'],
    }),
    ('click', '6.6', {
        'source_urls': ['https://pypi.python.org/packages/source/c/click/'],
    }),
    ('PyYAML', '3.12', {
        'source_urls': ['https://pypi.python.org/packages/source/p/pyyaml'],
        'modulename': 'yaml',
    }),
    ('simplejson', '3.8.2', {
        'source_urls': ['https://pypi.python.org/packages/source/s/simplejson/'],
    }),
    ('Jinja2', '2.8', {
        'source_urls': ['https://pypi.python.org/packages/source/J/Jinja2/'],
    }),
    ('multiqc', version, {
        'source_urls': ['https://pypi.python.org/packages/source/m/multiqc/'],
    }),
]

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


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

moduleclass = 'bio'
