easyblock = 'PythonPackage'

name = 'eccodes-python'
version = '1.1.0'

homepage = 'https://github.com/ecmwf/eccodes-python'
description = "Python 3 interface to decode and encode GRIB and BUFR files via the ECMWF ecCodes library."

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

github_account = 'ecmwf'
source_urls = [GITHUB_SOURCE]
sources = ['%(version)s.tar.gz']
checksums = ['c1b4986f2e44a1e5e37d9a38cb41ac97a4bd994edad1f8fce0342522f58b947e']

dependencies = [
    ('Python', '3.9.6'),
    ('SciPy-bundle', '2020.11'),
    ('ecCodes', '2.24.2'),
]

use_pip = True
download_dep_fail = True
sanity_pip_check = True

options = {'modulename': 'eccodes'}

moduleclass = 'tools'
