easyblock = 'PythonPackage'

name = 'phonopy'
version = '1.11.2'

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

toolchain = {'name': 'intel', 'version': '2017.00'}

source_urls = [SOURCEFORGE_SOURCE]
sources = [SOURCE_TAR_GZ]

python = 'Python'
pythonversion = '3.5.2'
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

#sanity_check_paths = {
#    'files': [],
#    'dirs': [('%s-%%(version)s-py%s.egg' % (pylibdir, pythonshortversion), pylibdir)],
#}

moduleclass = 'lib'
