easyblock = 'PythonBundle'

name = 'SciPy-bundle'
version = '2020.11'

homepage = 'https://python.org/'
description = "Bundle of Python packages for scientific software"

toolchain = {'name': 'intel', 'version': '2020b'}
toolchainopts = {'pic': True, 'lowopt': True}

dependencies = [
    ('Python', '3.8.6'),
    ('pybind11', '2.6.0'),  # required by scipy
]

use_pip = True

exts_default_options = {'source_urls': [PYPI_SOURCE]}

# order is important!
exts_list = [
    ('hypothesis', '5.41.1', {
        'checksums': ['06776c245b5eb25011040f94779fda6bbfa9def72074672af2e79a5e6bce8b38'],
    }),
    ('numpy', '1.19.4', {
        'patches': ['numpy-1.18.2-mkl.patch'], 
        'source_tmpl': '%(name)s-%(version)s.zip',
        'checksums': [
            '141ec3a3300ab89c7f2b0775289954d193cc8edb621ea05f99db9cb181530512',
            'ea25ad5c0148c1398d282f0424e642fb9815a1a80f4512659b018e2adc378bcf',  # numpy-1.18.2-mkl.patch
        ],
    }),
    ('scipy', '1.5.4', {
        'checksums': [
            '4a453d5e5689de62e5d38edf40af3f17560bfd63c9c5bd228c18c1f99afa155b',
        ],
    }),
    ('mpi4py', '3.0.3', {
        'checksums': ['012d716c8b9ed1e513fcc4b18e5af16a8791f51e6d1716baccf988ad355c5a1f'],
    }),
    ('pandas', '1.0.3', {
        'checksums': ['32f42e322fb903d0e189a4c10b75ba70d90958cc4f66a1781ed027f1a1d14586'],
    }),
    ('mpmath', '1.1.0', {
        'checksums': ['fc17abe05fbab3382b61a123c398508183406fa132e0223874578e20946499f6'],
    }),
    ('deap', '1.3.1', {
        'checksums': ['11f54493ceb54aae10dde676577ef59fc52d52f82729d5a12c90b0813c857a2f'],
    }),
]

sanity_pip_check = True

moduleclass = 'lang'
