easyblock = "PythonPackage"

name = 'monty'
version = '0.6.4'

homepage = 'https://pypi.python.org/pypi/monty/'
description = """Monty implements supplementary useful functions for Python that are not part of the standard library.
 Examples include useful utilities like transparent support for zipped files, useful design patterns such as singleton
 and cached_class, and many more."""

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

commit = '3152d41'
extrasuff = 'gmatteo-20150325'

source_urls = ['https://github.com/gmatteo/monty/archive/%s.tar.gz#' % commit]
sources = ['%%(name)s-%%(version)s-%s.tar.gz' % extrasuff]
checksums = ['d8afe0556fd29191e66babb31750b7c4']

python = 'Python'
pythonversion = '2.7.9'

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

dependencies = [
    (python, pythonversion),
    ('PyYAML', '3.11', '-%s-%s' % (python, pythonversion)),
]

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

moduleclass = 'lib'
