easyblock = 'PythonPackage'

name = 'ClusterShell'
version = '1.7.3'

homepage = 'http://cea-hpc.github.io/clustershell/'
description = """ClusterShell is an event-driven open source Python library, designed to run local or distant commands
 in parallel on server farms or on large Linux clusters."""

toolchain = SYSTEM

source_urls = [PYPI_SOURCE]
sources = [SOURCELOWER_TAR_GZ]

allow_system_deps = [('Python', SYS_PYTHON_VERSION)]

options = {'modulename': 'ClusterShell'}

local_pyshortver = '.'.join(SYS_PYTHON_VERSION.split('.')[:2])
sanity_check_paths = {
    'files': ['bin/clubak', 'bin/clush', 'bin/nodeset'],
    'dirs': ['lib/python%s/site-packages' % local_pyshortver]
}

moduleclass = 'tools'