# IT4Innovations
# LK 2025

easyblock = 'PythonBundle'

name = 'mayavi'
version = '4.8.2'

homepage = 'http://code.enthought.com/projects/mayavi/'
description = """The Mayavi scientific data 3-dimensional visualizer"""

toolchain = {'name': 'foss', 'version': '2023b'}

dependencies = [
    ('Python', '3.11.5'),
    ('SciPy-bundle', '2023.11'),
    ('VTK', '9.3.0'),
    ('PyQt5', '5.15.11', '-Python-3.11.5'),
]

use_pip = True

sanity_pip_check = True

exts_list = [
    ('configobj', '5.0.9', {
        'checksums': ['03c881bbf23aa07bccf1b837005975993c4ab4427ba57f959afdd9d1a2386848'],
    }),
    ('traits', '6.4.3', {
        'checksums': ['a9bbfd9e0c08b7de07e86ef64e69cb96a29c2105a43bf832cd8b162fa1e22f44'],
    }),
    ('pyface', '8.0.0', {
        'checksums': ['7e13618347b7a648ed20cdbd4fd1a51648f5010291f35e4e0ff1bf70a720cbf8'],
    }),
    ('traitsui', '8.0.0', {
        'checksums': ['901b9d1cbc45513e00a7397677b098441b28774b688f30a159bad4801bf40364'],
    }),
    ('apptools', '5.3.0', {
        'checksums': ['30580bf62a0d5dd616edd5e2b9958227633f35cb557c6860452a56809e6bd567'],
    }),
    ('envisage', '7.0.3', {
        'checksums': ['f7b1af88bf3a8fff2a9ac6e36bb48dea9929e3f612204cfe94aed62b0316c9e3'],
    }),
    (name, version, {
        'preinstallopts': "export QT_QPA_PLATFORM=offscreen && ",
        'source_tmpl': 'mayavi-%(version)s.tar.gz',
        'checksums': ['b10fe9145f21c48e4902f0e746b3603b3cb694d11456515a46820f21a0a74229'],
    }),
]

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

moduleclass = 'vis'
