# IT4Innovations 2020
# LK

easyblock = 'Bundle'

name = 'FIAT'
version = '2019.1.0'
versionsuffix = '-Py-3.7'

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': '2020a'}

dependencies = [
   ('Py', '3.7', '', True),
   ('numpy', '1.18.1', versionsuffix, True),
]

exts_defaultclass = 'PythonPackage'
exts_download_dep_fail = True
exts_default_options = {'use_pip': True}

exts_list = [
    ('sympy', '1.2', {
        'source_urls': ['https://pypi.python.org/packages/source/s/sympy/'],
        'checksums': ['286ca070d72e250861dea7a21ab44f541cb2341e8268c70264cf8642dbd9225f'],
    }),
    ('mpmath', '1.1.0', {
        'source_urls': ['https://pypi.python.org/packages/source/m/mpmath/'],
        'checksums': ['fc17abe05fbab3382b61a123c398508183406fa132e0223874578e20946499f6'],
    }),
    (name, version, {
        'modulename': 'FIAT',
        'source_tmpl': 'fiat-%(version)s.tar.gz',
        'source_urls': ['https://bitbucket.org/fenics-project/fiat/downloads'],
    }),
]

sanity_check_paths = {
    'files': [],
    'dirs': ['lib/python3.7/site-packages'],
}

modextrapaths = {'PYTHONPATH': ['lib/python3.7/site-packages']}

moduleclass = 'math'
