easyblock = 'PythonPackage'

name = 'Pygments'
version = '2.0.2'

homepage = 'http://pygments.org/'
description = """Generic syntax highlighter suitable for use in code hosting, forums, wikis or other applications
 that need to prettify source code."""

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

source_urls = [PYPI_SOURCE]
sources = [SOURCE_TAR_GZ]

python = 'Python'
pythonversion = '2.7.9'
pyshortver = '.'.join(pythonversion.split('.')[:2])

versionsuffix = '-%s-%s' % (python, pythonversion)

dependencies = [
    (python, pythonversion),
]

sanity_check_paths = {
    'files': ['bin/pygmentize'],
    'dirs': ['lib/python%s/site-packages/%%(name)s-%%(version)s-py%s.egg' % (pyshortver, pyshortver)],
}

moduleclass = 'devel'
