easyblock = 'PythonPackage'

name = 'phonopy'
version = '1.11.12.5'

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

toolchain = SYSTEM

source_urls = [
    'https://pypi.local_python.org/packages/4b/25/effde7ab68249fbed654dc317354a028597bfd4a4f804d7cb3ed987c55b7/']
sources = ['%(name)s-%(version)s.tar.gz']

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

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

dependencies = [
    (local_python, local_pythonversion, '-base'),
    ('matplotlib', '2.0.2', versionsuffix),
    ('lxml', '3.8.0', versionsuffix),
    ('PyYAML', '3.12', versionsuffix),
    ('numpy', '1.13.0', versionsuffix),
    ('h5py', '2.7.0', '-intel-2017a%(versionsuffix)s'),
    ('scipy', '0.19.1', versionsuffix)
]

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

moduleclass = 'phys'
