# IT4Innovations 2018

easyblock = "PythonPackage"

name = 'phono3py'
version = '1.12.9.5'

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 = [
    'https://pypi.python.org/packages/81/fd/b2a3be820ff70af7ea88039e0ef36ed4e9c1df7d85e1b91c69339a503cf5/']

# 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.14.2', '-test'),
    ('h5py', '2.7.1'),
    ('matplotlib', '2.1.1'),
    ('PyYAML', '3.12'),
    ('phonopy', '1.12.6.66'),
]

moduleclass = 'phys'