easyblock = 'PythonPackage'

name = 'phonopy'
version = '1.11.6.7'

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

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

#source_urls = [SOURCEFORGE_SOURCE]
sources = ['phonopy-1.11.6.7.tar.gz']

python = 'Python'
pythonversion = '2.7.9'
pythonshortversion = '.'.join(pythonversion.split('.')[:-1])

versionsuffix = "-%s-%s" % (python, pythonversion)

dependencies = [
    (python, pythonversion),
    ('matplotlib', '1.4.3', versionsuffix),
    ('lxml', '3.4.4', versionsuffix),
    ('PyYAML', '3.11', versionsuffix),
]

pylibdir = "lib/python%s/site-packages/%%(name)s" % pythonshortversion

moduleclass = 'phys'
