# IT4Innovations
# LK 2021

name = 'GROMACS'
version = '2018.8'
versionsuffix = '-PLUMED-2.5.6-patch'

homepage = 'https://www.gromacs.org'
description = """
GROMACS is a versatile package to perform molecular dynamics, i.e. simulate the
Newtonian equations of motion for systems with hundreds to millions of
particles.

This is a GPU enabled build, containing both MPI and threadMPI builds.

It also contains the gmxapi extension for the single precision MPI build.
"""

toolchain = {'name': 'fosscuda', 'version': '2020b'}
toolchainopts = {'openmp': True, 'usempi': True}

source_urls = [
    'https://ftp.gromacs.org/pub/gromacs/',
    'ftp://ftp.gromacs.org/pub/gromacs/',
]

patches = [
    'GROMACS-2018_fix_search_for_nvml_include.patch',
    'GROMACS-2018_amend_search_for_nvml_lib.patch',
]

sources = ['gromacs-%(version)s-plumed-2.5.6.tar.gz']

checksums = [
    '64d3613b5d346a2dd7118e289f87937d',
    '59d59316337ce08134d600b44c6501240f2732826ea5699f4b0ae83bb1ae0bd3', # GROMACS-2018_fix_search_for_nvml_include.patch
    '769cf8aab2e76bb1b36befa4b60df0b975a35877994218725426bb2c597f321b', # GROMACS-2018_amend_search_for_nvml_lib.patch
]

builddependencies = [
    ('CMake', '3.18.4'),
    ('scikit-build', '0.11.1'),
]

dependencies = [
    ('Python', '3.8.6'),
    ('SciPy-bundle', '2020.11'),
    ('networkx', '2.5'),
    ('PLUMED', '2.5.6', '-patch'),
]

exts_defaultclass = 'PythonPackage'

modextrapaths = {
    'PYTHONPATH': 'lib/python%(pyshortver)s/site-packages',
}

moduleclass = 'bio'
