easyblock = 'PythonPackage'

name = 'mysqlclient'
version = '1.3.7'
versionsuffix = '-Python-%(pyver)s'

homepage = 'https://github.com/PyMySQL/mysqlclient-python'
description = """Python interface to MySQL"""

toolchain = {'name': 'foss', 'version': '2016a'}

source_urls = [PYPI_SOURCE]
sources = [SOURCE_TAR_GZ]

dependencies = [
    ('Python', '2.7.11'),
    ('MariaDB', '10.1.14'),
]

# enable static linking to fix problem with unresolved symbols in mysql.so
prebuildopts = "sed -i 's/static = False/static = True/g' site.cfg && "

options = {'modulename': 'MySQLdb'}

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

moduleclass = 'lib'
