# JH 2020

easyblock = 'CMakeMake'

name = 'pybind11'
version = '2.4.3'
versionsuffix = '-Python-%(pyver)s'

homepage = 'https://pybind11.readthedocs.io'
description = """pybind11 is a lightweight header-only library that exposes C++ types in Python and vice versa,
 mainly to create Python bindings of existing C++ code."""

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

source_urls = ['https://github.com/pybind/pybind11/archive/']
sources = ['v%(version)s.tar.gz']
checksums = ['1eed57bc6863190e35637290f97a20c81cfe4d9090ac0a24f3bbf08f265eb71d']

builddependencies = [
    ('binutils', '2.27'),
    ('CMake', '3.16.2', '', True),
    ('Eigen', '3.3.7', '', True),
]
dependencies = [
    ('Python', '3.7.3'),
]

configopts = "-DPYTHON_EXECUTABLE=$EBROOTPYTHON/bin/python"

sanity_check_paths = {
    'files': [],
    'dirs': ['include/pybind11', 'share/cmake/pybind11'],
}

moduleclass = 'lib'
