easyblock = 'PythonPackage'

name = 'pyproj'
version = '3.0.1'

homepage = 'https://pyproj4.github.io/pyproj'
description = "Python interface to PROJ4 library for cartographic transformations"

toolchain = {'name': 'GCCcore', 'version': '10.2.0'}

sources = [SOURCE_TAR_GZ]
checksums = ['bfbac35490dd17f706700673506eeb8170f8a2a63fb5878171d4e6eef242d141']

builddependencies = [
    ('binutils', '2.35'),
]

dependencies = [
    ('Python', '3.8.6'),
    ('PROJ', '8.0.1'),
]

download_dep_fail = True
use_pip = True

preinstallopts = "export PROJ_DIR=$EBROOTPROJ && "

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

sanity_check_commands = ['pyproj --help']

sanity_pip_check = True

moduleclass = 'data'
