# This file is an EasyBuild reciPY as per https://easybuilders.github.io/easybuild/
# Author: Pablo Escobar Lopez
# sciCORE - University of Basel
# SIB Swiss Institute of Bioinformatics 

easyblock = "PythonPackage"

name = 'DLCpar'
version = '1.0'
versionsuffix = "-Python-%(pyver)s"

homepage = 'https://www.cs.hmc.edu/~yjw/software/dlcpar/'
description = """DLCpar is a reconciliation method for inferring gene duplications, losses, 
 and coalescence (accounting for incomplete lineage sorting)"""

toolchain = {'name': 'goolf', 'version': '1.7.20'}

source_urls = ['https://www.cs.hmc.edu/~yjw/software/dlcpar/pub/sw/']
sources = [SOURCELOWER_TAR_GZ]
checksums = ['774319caba0f10d1230b8f85b8a147eda5871f9a316d7b3381b91c1bde97aa0a']

dependencies = [
    ('Python', '2.7.11'),  # also provides numpy >= 1.10.4
]

sanity_check_paths = {
    'files': ['bin/%s' % x for x in ['dlcoal_to_dlcpar', 'dlcpar', 'dlcpar_search', 'dlcpar_to_dlcoal',
                                     'tree-events-dlc', 'tree-events-dlcpar']],
    'dirs': ['lib/python%(pyshortver)s/site-packages/dlcpar']
}

moduleclass = 'bio'
