easyblock = 'PythonPackage'

name = 'FIAT'
version = '1.6.0'

homepage = 'https://bitbucket.org/fenics-project/fiat'
description = """The FInite element Automatic Tabulator FIAT supports generation of arbitrary order
instances of the Lagrange elements on lines, triangles, and tetrahedra. It is also capable of generating
arbitrary order instances of Jacobi-type quadrature rules on the same element shapes."""

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

source_urls = ['https://bitbucket.org/fenics-project/fiat/downloads']
sources = [SOURCELOWER_TAR_GZ]

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

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

dependencies = [
    (local_python, local_pythonversion),
    ('ScientificPython', '2.9.4', versionsuffix),
    ('sympy', '0.7.6', versionsuffix),
]

options = {'modulename': name}

sanity_check_paths = {
    'files': [],
    'dirs': ['lib'],
}

moduleclass = 'math'
