easyblock = 'PythonPackage'

name = 'Keras'
version = '2.0.5'
versionsuffix = '-Tensorflow-1.3.0-intel-2017b-mkl-Python-%(local_pyver)s'

homepage = 'https://keras.io/'
description = """Keras is a minimalist, highly modular neural networks library, written in Python and
capable of running on top of either TensorFlow or Theano."""

toolchain = SYSTEM

source_urls = [PYPI_SOURCE]
sources = [SOURCE_TAR_GZ]

use_pip = True

dependencies = [
    ('Python', '3.6.1'),
    ('Tensorflow', '1.3.0', '-mkl', ('intel', '2017b')),
]

# it defaults to Tensorflow
modextravars = {'KERAS_BACKEND': 'tensorflow'}

sanity_check_paths = {
    'files': [],
    'dirs': ['lib/python%(local_pyshortver)s/site-packages'],
}

moduleclass = 'math'
