easyblock = 'PythonPackage'

name = 'phonopy'
version = '1.12.2.20'
versionsuffix = '-Python-%(pyver)s'

homepage = 'http://atztogo.github.io/phonopy/'
description = """Phonopy is an open source package of phonon calculations based on the supercell approach."""

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

source_urls = [PYPI_SOURCE]
sources = [SOURCE_TAR_GZ]
checksums = ['4328ec2cf8bb7b04c4149e03a40c0979625f68a2a057c9b38b00afbd92463117']

dependencies = [
    ('Python', '2.7.14'),
    ('matplotlib', '2.1.1', versionsuffix),
    ('lxml', '4.1.1', versionsuffix),
    ('PyYAML', '3.12', versionsuffix),
    ('h5py', '2.7.1', versionsuffix),
]


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

moduleclass = 'lib'
