easyblock = 'PythonPackage'

name = 'GeoIP'
version = '1.3.2'

homepage = 'https://pypi.python.org/pypi/GeoIP'
description = "MaxMind GeoIP Legacy Database - Python API"

toolchain = {'name': 'intel', 'version': '2015a'}

source_urls = [PYPI_SOURCE]
sources = [SOURCE_TAR_GZ]

pyver = '2.7.10'
versionsuffix = '-Python-%s' % pyver
dependencies = [
    ('Python', pyver),
    ('GeoIP-C', '1.6.7'),
]

options = {'modulename': name}

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

moduleclass = 'lib'
