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']

local_python = 'Python'
local_pythonversion = '2.7.9'
local_pythonshortversion = '.'.join(local_pythonversion.split('.')[:-1])

versionsuffix = "-%s-%s" % (local_python, local_pythonversion)

dependencies = [
    (local_python, local_pythonversion),
    ('matplotlib', '1.4.3', versionsuffix),
    ('lxml', '3.4.4', versionsuffix),
    ('PyYAML', '3.11', versionsuffix),
]

local_pylibdir = "lib/local_python%s/site-packages/%%(name)s" % local_pythonshortversion

moduleclass = 'phys'
