# This file is an EasyBuild reciPY as per https://github.com/easybuilders/easybuild 
# Author: Pablo Escobar Lopez
# sciCORE - University of Basel
# SIB Swiss Institute of Bioinformatics 
# 0.9.1.4:
# Modified by: Robert Qiao <robert.qiao@adelaide.edu.au>, Exequiel Sepulveda <exequiel.sepulveda@gmail.com>
# @ adelaide.edu.au/phoenix

easyblock = 'Bundle'

name = 'Pysam'
version = '0.10.0'
versionsuffix = '-Python-%(pyver)s'

homepage = 'https://github.com/pysam-developers/pysam'
description = """Pysam is a python module for reading and manipulating Samfiles. 
 It's a lightweight wrapper of the samtools C-API. Pysam also includes an interface for tabix."""

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

dependencies = [
    ('Python', '2.7.12'),
    ('ncurses', '6.0'),
    ('zlib', '1.2.8'),
    ('cURL', '7.49.1'),
]

# this is a bundle of Python packages
exts_defaultclass = 'PythonPackage'
exts_filter = ("python -c 'import %(ext_name)s'", '')

exts_list = [
    ('Cython', '0.25.2', {
        'source_urls': ['https://pypi.python.org/packages/source/c/cython/'],
        'checksums': ['f141d1f9c27a07b5a93f7dc5339472067e2d7140d1c5a9e20112a5665ca60306'],
    }),
    ('pysam', version, {
        'source_tmpl': 'v%(version)s.tar.gz',
        'source_urls': ['https://github.com/pysam-developers/pysam/archive/'],
        'checksums': ['c83b88df7e47fe2ac24996fb6ec5a304cd1301ee4688f3f94443e4a742b2bbd6'],
    }),
]

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

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

moduleclass = 'bio'
