easyblock = "PythonPackage"

name = 'horton'
version = '1.0.2'

homepage = 'http://theochem.github.io/horton'
description = """Horton is a development platform for electronic structure methods."""

toolchain = {'name': 'goolf', 'version': '1.4.10'}

source_urls = ['http://users.ugent.be/~tovrstra/horton']
sources = [SOURCE_TAR_GZ]

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

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

dependencies = [
    (python, pythonversion),
    ('Cython', '0.19.1', versionsuffix),
    ('h5py', '2.1.3', versionsuffix),
    ('matplotlib', '1.2.1', versionsuffix),
    ('sympy', '0.7.2', versionsuffix),
    ('Libint', '2.0.3'),
    ('libxc', '2.0.1'),
]

# disable tests that require X11 by specifying "backend: agg" in matplotlibrc
runtest = 'export MATPLOTLIBRC=$PWD; echo "backend: agg" > $MATPLOTLIBRC/matplotlibrc; '
runtest += 'python setup.py build_ext -i; nosetests -v'

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

moduleclass = 'chem'
