# IT4Innovations 2018

easyblock = "PythonPackage"

name = 'phono3py'
version = '1.11.13.35'

homepage = 'http://phonopy.sourceforge.net/phono3py/index.html'
description = """This software calculates phonon-phonon interaction related properties"""

toolchain = {'name': 'Py', 'version': '2.7'}

sources = [SOURCELOWER_TAR_GZ]
source_urls = ['http://sourceforge.net/projects/phonopy/files/phono3py/']

# notice the hash hack to override setup.py
prebuildopts = 'python setup.py build #'
# another hack
preinstallopts = 'python setup.py install --prefix=%(installdir)s #'
skipsteps = ['test']
options = {'modulename': 'phonopy'}

dependencies = [
    ('OpenBLAS', '0.2.19', '-GCC-6.3.0-2.27-LAPACK-3.7.0', True),
    ('numpy', '1.13.3'),
    ('h5py', '2.7.1'),
    ('matplotlib', '2.1.1'),
    ('PyYAML', '3.12'),
    ('phonopy', '1.12.4.11'),
]

moduleclass = 'phys'