easyblock = 'PythonPackage'

name = 'pycosat'
version = '0.6.0'

homepage = 'https://pypi.python.org/pypi/pycosat'
description = """pycosat provides efficient Python bindings to picosat on the C level, i.e. when importing pycosat,
 the picosat solver becomes part of the Python process itself."""

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

source_urls = [PYPI_SOURCE]
sources = [SOURCE_TAR_GZ]

python = 'Python'
pyver = '2.7.10'
versionsuffix = '-%s-%s' % (python, pyver)

dependencies = [
    (python, pyver),
]

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

moduleclass = 'tools'
