easyblock = "PythonPackage"

name = 'PyYAML'
version = '3.10'

homepage = 'http://pyyaml.org/'
description = """YAML 1.1 implementation for Python"""

toolchain = {'name': 'ictce', 'version': '5.3.0'}

source_urls = ['http://pyyaml.org/download/pyyaml/']
sources = [SOURCE_TAR_GZ]

python = 'Python'
pythonversion = '2.7.3'
pythonshortversion = '.'.join(pythonversion.split('.')[:-1])

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

dependencies = [
    (python, pythonversion),
    ('libyaml', '0.1.4'),
]

options = {'modulename': 'yaml'}

sanity_check_paths = {
    'files': [],
    'dirs': ['lib/python%s/site-packages/yaml' % pythonshortversion],
}

moduleclass = 'lib'
