# IT4Innovations 2019

name = 'OpenBabel'
version = '2.4.1'
versionsuffix = '-Python-%(local_pyver)s'

homepage = 'http://openbabel.org'
description = """Open Babel is a chemical toolbox designed to speak the many
 languages of chemical data. It's an open, collaborative project allowing anyone
 to search, convert, analyze, or store data from molecular modeling, chemistry,
 solid-state materials, biochemistry, or related areas."""

toolchain = {'name': 'GCCcore', 'version': '6.3.0'}
toolchainopts = {'optarch': True}

source_urls = [SOURCEFORGE_SOURCE]
sources = [SOURCELOWER_TAR_GZ]
patches = [
    'OpenBabel-2.3.2-use-xHost.patch',
    'OpenBabel-%(version)s-fix-link-path-tests.patch',
    'OpenBabel-%(version)s_fix-Python-3.patch',
]
checksums = [
    '204136582cdfe51d792000b20202de8950218d617fd9c6e18cee36706a376dfc',  # openbabel-2.4.1.tar.gz
    '0db85c64f53862dce05ada9091a35d7b4c5c29a44aef76e0cb41cd679441a446',  # OpenBabel-2.3.2-use-xHost.patch
    'a6a1f687fc22e20a83b4f8c5e89e32e3eebefb1bb9440c9ca3848d23120bc458',  # OpenBabel-2.4.1-fix-link-path-tests.patch
    '270ab3770839b4163c906ed88366157d8823b7038863d1b3affec04cd0b788bf',  # OpenBabel-2.4.1_fix-Python-3.patch
]

builddependencies = [('CMake', '3.14.1', '', True)]

dependencies = [
    ('Python', '3.7.3'),
    ('zlib', '1.2.11', '', True),
    ('libxml2', '2.9.9', '', True),
    ('Eigen', '3.3.7', '', True),
]

runtest = 'test'

moduleclass = 'chem'