easyblock = 'Binary'

name = 'ELIC'
version = '0.1'
versionsuffix = '-Python-%(pyver)s'

homepage = 'https://gogs.elic.ucl.ac.be'
description = """This repo provides additional Python and R extensions for ELIC ecosystem."""

toolchain = {'name': 'foss', 'version': '2018b'}
toolchainopts = {'pic': True}

source_urls = ['https://github.com/ESMValGroup/ESMValTool/archive/']
sources = [{'filename': 'ESMValTool.tar.gz', 'download_filename': 'v2.0a1.tar.gz'}]

dependencies = [
    ('Python', '3.6.6'),
    ('NCL', '6.5.0'),
    #('R', '3.5.1', versionsuffix),
    ('R', '3.5.1'),
    ('CDO', '1.9.5'),
    ('NCO', '4.7.9'),
    ('ncview', '2.1.7'),
    ('GEOS', '3.6.2', versionsuffix),
    ('libjpeg-turbo', '2.0.0'),
    ('libpng', '1.6.34'),
    ('zlib', '1.2.11'),
    ('LibTIFF', '4.0.9'),
    ('freetype', '2.9.1'),
    ('PROJ', '5.0.0'),
    ('netCDF', '4.6.1'),
    ('GDAL', '2.2.3', versionsuffix),
    ('GTK+', '3.24.7', versionsuffix),
    ('matplotlib', '3.0.3', versionsuffix),
    ('PyGObject', '3.28.3', versionsuffix),
    ('ecCodes', '2.8.2'),
    ('libmo_unpack', '3.1.2'),
    ('numba', '0.43.0', versionsuffix),
]

exts_defaultclass = 'PythonPackage'
exts_default_options = {
    'source_tmpl': '%(name)s-%(version)s.tar.gz',
}

exts_classmap = {
    'ncdf4': 'RPackage',
    'gdtools': 'RPackage',
    'leaflet': 'RPackage',
    'satellite': 'RPackage',
    'sf': 'RPackage',
    'svglite': 'RPackage',
    'mapview': 'RPackage',
    'MuMIn': 'RPackage',
    'BayesianTools': 'RPackage'
}
exts_list = [
    # Python deps, order is important!
    ('pip', '19.0.3', {
        'modulename': 'pip',
        'source_tmpl': '%(version)s.tar.gz',
        'source_urls': ['https://github.com/pypa/pip/archive/'],
    }),
    ('olefile', '0.45.1', {
        'source_tmpl': '%(name)s-%(version)s.zip',
        'source_urls': ['https://pypi.python.org/packages/source/o/olefile/'],
        'checksums': ['2b6575f5290de8ab1086f8c5490591f7e0885af682c7c1793bdaf6e64078d385'],
    }),
    ('Pillow', '4.3.0', {
        'modulename': 'PIL',
        'source_urls': ['https://pypi.python.org/packages/source/p/Pillow/'],
        'checksums': ['a97c715d44efd5b4aa8d739b8fad88b93ed79f1b33fc2822d5802043f3b1b527'],
    }),
    ('pyproj', '1.9.5.1', {
        'source_urls': ['https://pypi.python.org/packages/source/p/pyproj/'],
        'checksums': ['53fa54c8fa8a1dfcd6af4bf09ce1aae5d4d949da63b90570ac5ec849efaf3ea8'],
    }),
    ('pyshp', '2.1.0', {
        'modulename': 'shapefile',
        'source_urls': ['https://pypi.python.org/packages/source/p/pyshp/'],
    }),
    ('chardet', '3.0.4', {
        'source_urls': ['https://pypi.python.org/packages/source/c/chardet/'],
        'checksums': ['84ab92ed1c4d4f16916e05906b6b75a6c0fb5db821cc65e70cbd64a3e2a5eaae'],
    }),
    ('urllib3', '1.24.1', {
        'source_urls': ['https://pypi.python.org/packages/source/u/urllib3/'],
    }),
    ('certifi', '2019.3.9', {
        'source_urls': ['https://pypi.python.org/packages/source/c/certifi/'],
    }),
    ('requests', '2.21.0', {
        'source_urls': ['https://pypi.python.org/packages/source/r/requests/'],
    }),
    ('OWSLib', '0.17.1', {
        'source_urls': ['https://pypi.python.org/packages/source/o/OWSLib/'],
    }),
    ('netCDF4', '1.3.1', {
        'modulename': 'netCDF4',
        'source_urls': ['https://pypi.python.org/packages/source/n/netCDF4/'],
        'checksums': ['570ea59992aa6d98a9b672c71161d11ba5683f787da53446086077470a869957'],
    }),
    ('geoval', '0.1.5', {
        'source_urls': ['https://pypi.python.org/packages/source/g/geoval/'],
        'checksums': ['7da4a1879f78bb7aac2d41b5c1ee360ff74087bf857c81c532deb8cc31feb36e'],
    }),
    ('cdo', '1.3.6', {
        'source_urls': ['https://pypi.python.org/packages/source/c/cdo/'],
        'checksums': ['b167efbbac7d0a6cbf74f5d211255705c73245f7c2590b6d9eb634347d8b2c1f'],
    }),
    ('Shapely', '1.6.4.post2', {
        'source_urls': ['https://pypi.python.org/packages/source/s/Shapely/'],
    }),
    ('Cartopy', '0.17.0', {
        'source_urls': ['https://pypi.python.org/packages/source/c/Cartopy/'],
    }),
    ('dask', '1.1.4', {
        'source_urls': ['https://pypi.python.org/packages/source/d/dask/'],
    }),
    ('astropy', '3.1.2', {
        'modulename': 'astropy',
        'source_urls': ['https://pypi.python.org/packages/source/a/astropy/'],
    }),
    ('oktopus', '0.1.2', {
        'modulename': 'oktopus',
        'source_urls': ['https://pypi.python.org/packages/source/o/oktopus/'],
    }),
    ('bs4', '0.0.1', {
        'modulename': 'bs4',
        'source_urls': ['https://pypi.python.org/packages/source/b/bs4/'],
    }),
    ('tqdm', '4.31.1', {
        'modulename': 'tqdm',
        'source_urls': ['https://pypi.python.org/packages/source/t/tqdm/'],
    }),
    ('PyKE', '3.1.0', {
        'modulename': 'pyke',
        'source_tmpl': 'v%(version)s.tar.gz',
        'source_urls': ['https://github.com/KeplerGO/pyke/archive/'],
    }),
    ('cf-units', '2.1.1', {
        'source_urls': ['https://pypi.python.org/packages/source/c/cf_units/'],
    }), 
    ('cftime', '1.0.3.4rel', {
        'modulename': 'cftime',
        'source_tmpl': 'v%(version)s.tar.gz',
        'source_urls': ['https://github.com/Unidata/cftime/archive/'],
    }), 
    ('pyugrid', '0.3.1', {
        'source_urls': ['https://pypi.python.org/packages/source/p/pyugrid/'],
        'checksums': ['eddadc1e88c0e801f780b1e6f636fbfc00e3d14cdab82b43300fde0918310053'],
    }),
    ('mo_pack', '0.2.0', {
        'source_tmpl': 'v%(version)s.tar.gz',
        'source_urls': ['https://github.com/SciTools/mo_pack/archive/'],
        'checksums': ['4aa70e1f846b666670843bc2514435dedf7393203e88abaf74d48f8f2717a726'],
    }),
    ('cycler', '0.10.0', {
        'source_urls': ['https://pypi.python.org/packages/source/c/cycler/'],
        'checksums': ['cd7b2d1018258d7247a71425e9f26463dfb444d411c39569972f4ce586b0c9d8'],
    }),
    ('singledispatch', '3.4.0.3', {
        'source_urls': ['https://pypi.python.org/packages/source/s/singledispatch/'],
        'checksums': ['5b06af87df13818d14f08a028e42f566640aef80805c3b50c5056b086e3c2b9c'],
    }),
    ('backports_abc', '0.5', {
        'source_urls': ['https://pypi.python.org/packages/source/b/backports_abc/'],
        'checksums': ['033be54514a03e255df75c5aee8f9e672f663f93abb723444caec8fe43437bde'],
    }), 
    ('tornado', '5.1.1', {
        'source_urls': ['https://pypi.python.org/packages/source/t/tornado/'],
    }),
    ('toolz', '0.9.0', {
        'source_urls': ['https://pypi.python.org/packages/source/t/toolz/'],
        'checksums': ['929f0a7ea7f61c178bd951bdae93920515d3fbdbafc8e6caf82d752b9b3b31c9'],
    }),
    ('patsy', '0.5.0', {
        'source_urls': ['https://pypi.python.org/packages/source/p/patsy/'],
        'checksums': ['e05f38d5c38c8d216f0cc2b765b1069b433c92d628b954fb2fee68d13e42883b'],
    }),
    ('statsmodels', '0.9.0', {
        'source_urls': ['https://pypi.python.org/packages/source/s/statsmodels/'],
        'checksums': ['6461f93a842c649922c2c9a9bc9d9c4834110b89de8c4af196a791ab8f42ba3b'],
    }),
    ('nc-time-axis', '1.1.0', {
        'modulename': 'nc_time_axis',
        'source_urls': ['https://pypi.python.org/packages/source/n/nc-time-axis/'],
        'checksums': ['ea9d4f7f9e9189c96f7d320235ac6c4be7f63dc5aa256b3ee5d5cca5845e6e26'],
    }),
    ('yamale', '1.10.0', {
        'modulename': 'yamale',
        'source_urls': ['https://pypi.python.org/packages/source/y/yamale/'],
    }),
    ('stratify', '0.2', {
        'modulename': 'stratify',
        'source_tmpl': 'master.zip',
        'source_urls': ['https://github.com/SciTools-incubator/python-stratify/archive/'],
    }),
    ('psutil', '5.6.1', {
        'modulename': 'psutil',
        'source_urls': ['https://pypi.python.org/packages/source/p/psutil/'],
        'checksums': ['fa0a570e0a30b9dd618bffbece590ae15726b47f9f1eaf7518dfb35f4d7dcd21'],
    }),
    ('bcrypt', '3.1.6', {
        'source_urls': ['https://pypi.python.org/packages/source/b/bcrypt/'],
    }),
    ('cffi', '1.12.2', {
        'source_urls': ['https://pypi.python.org/packages/source/c/cffi/'],
    }),
    ('cryptography', '2.6.1', {
        'source_urls': ['https://pypi.python.org/packages/source/c/cryptography/'],
    }),
    ('Cython', '0.29.6', {
        'source_urls': ['https://pypi.python.org/packages/source/c/Cython/'],
    }),
    ('decorator', '4.4.0', {
        'source_urls': ['https://pypi.python.org/packages/source/d/decorator/'],
    }),
    ('mpi4py', '3.0.1', {
        'source_urls': ['https://pypi.python.org/packages/source/m/mpi4py/'],
    }),
    ('numpy', '1.16.2', {
        'modulename': 'numpy',
        'source_tmpl': 'v%(version)s.tar.gz',
        'source_urls': ['https://github.com/numpy/numpy/archive/'],
    }),
    ('pandas', '0.24.2', {
        'source_urls': ['https://pypi.python.org/packages/source/p/pandas/'],
    }),
    ('pbr', '5.1.3', {
        'source_urls': ['https://pypi.python.org/packages/source/p/pbr/'],
    }),
    ('pycparser', '2.19', {
        'source_urls': ['https://pypi.python.org/packages/source/p/pycparser/'],
    }),
    ('scipy', '1.2.1', {
        'source_urls': ['https://pypi.python.org/packages/source/s/scipy/'],
    }),            
    ('six', '1.12.0', {
        'source_urls': ['https://pypi.python.org/packages/source/s/six/'],
    }),
    ('virtualenv', '16.4.3', {
        'source_urls': ['https://pypi.python.org/packages/source/x/virtualenv/'],
    }),
    ('xlrd', '1.2.0', {
        'source_urls': ['https://pypi.python.org/packages/source/x/xlrd/'],
    }),
    ('affine', '2.2.2', {
        'source_urls': ['https://pypi.python.org/packages/source/a/affine/'],
    }),          
    ('atomicwrites', '1.3.0', {
        'source_urls': ['https://pypi.python.org/packages/source/a/atomicwrites/'],
    }),
    ('boto3', '1.9.116', {
        'source_urls': ['https://pypi.python.org/packages/source/b/boto3/'],
    }),
    ('botocore', '1.12.116', {
        'source_urls': ['https://pypi.python.org/packages/source/b/botocore/'],
    }),          
    ('bottleneck', '1.2.1', {
        'modulename': 'bottleneck',
        'source_tmpl': 'v%(version)s.tar.gz',
        'source_urls': ['https://github.com/kwgoodman/bottleneck/archive/'],
    }),
     ('click', '7.0', {
        'modulename': 'click',
        'source_tmpl': '%(version)s.tar.gz',
        'source_urls': ['https://github.com/pallets/click/archive/'],
    }),      
    ('click-plugins', '1.0.4', {
        'source_urls': ['https://pypi.python.org/packages/source/c/click-plugins/'],
    }),
    ('cligj', '0.5.0', {
        'source_urls': ['https://pypi.python.org/packages/source/c/cligj/'],
    }),          
    ('cloudpickle', '0.8.0', {
        'source_urls': ['https://pypi.python.org/packages/source/c/cloudpickle/'],
    }),
    ('configobj', '5.0.6', {
        'source_urls': ['https://pypi.python.org/packages/source/c/configobj/'],
    }), 
    ('docutils', '0.14', {
        'source_urls': ['https://pypi.python.org/packages/source/d/docutils/'],
    }),          
    ('fiona', '1.8.6', {
        'modulename': 'fiona',
        'source_tmpl': '%(version)s.tar.gz',
        'source_urls': ['https://github.com/Toblerity/Fiona/archive/'],
    }),
    ('geopandas', '0.4.1', {
        'source_urls': ['https://pypi.python.org/packages/source/g/geopandas/'],
    }),
    ('jmespath', '0.9.4', {
        'source_urls': ['https://pypi.python.org/packages/source/j/jmespath/'],
    }),          
    ('more-itertools', '5.0.0', {
        'source_urls': ['https://pypi.python.org/packages/source/m/more-itertools/'],
    }),
    ('motionless', '1.3.2', {
        'source_urls': ['https://pypi.python.org/packages/source/m/motionless/'],
    }),     
    ('munch', '2.3.2', {
        'source_urls': ['https://pypi.python.org/packages/source/m/munch/'],
    }),
    ('networkx', '2.2', {
        'modulename': 'networkx',
        'source_tmpl': 'networkx-%(version)s.tar.gz',
        'source_urls': ['https://github.com/networkx/networkx/archive/'],
    }),          
    ('pathlib2', '2.3.3', {
        'source_urls': ['https://pypi.python.org/packages/source/p/pathlib2/'],
    }),
    ('pluggy', '0.9.0', {
        'source_urls': ['https://pypi.python.org/packages/source/p/pluggy/'],
    }),   
    ('py', '1.8.0', {
        'source_urls': ['https://pypi.python.org/packages/source/p/py/'],
    }),           
    ('pytest', '4.3.1', {
        'source_urls': ['https://pypi.python.org/packages/source/p/pytest/'],
    }),   
    ('python-utils', '2.3.0', {
        'source_urls': ['https://pypi.python.org/packages/source/p/python-utils/'],
    }),
    ('rasterio', '1.0.21', {
        'source_urls': ['https://pypi.python.org/packages/source/r/rasterio/'],
    }), 
    ('s3transfer', '0.2.0', {
        'source_urls': ['https://pypi.python.org/packages/source/s/s3transfer/'],
    }),   
    ('scandir', '1.10.0', {
        'source_urls': ['https://pypi.python.org/packages/source/s/scandir/'],
    }),
    ('snuggs', '1.4.3', {
        'source_urls': ['https://pypi.python.org/packages/source/s/snuggs/'],
    }),
    ('xarray', '0.11.3', {
        'source_urls': ['https://pypi.python.org/packages/source/x/xarray/'],
    }),
    ('py-expression-eval', '0.3.6', {
        'modulename': 'py_expression_eval',
        'source_tmpl': 'v%(version)s.tar.gz',
        'source_urls': ['https://github.com/Axiacore/py-expression-eval/archive/'],
    }),
    ('PyWavelets', '1.0.2', {
        'modulename': 'pywt',
        'source_urls': ['https://pypi.python.org/packages/source/p/PyWavelets/'],
    }),
    ('attrs', '19.1.0', {
        'modulename': 'attr',
        'source_urls': ['https://pypi.python.org/packages/source/a/attrs/'],
    }),
    ('progressbar2', '3.39.3', {
        'modulename': 'progressbar',
        'source_urls': ['https://pypi.python.org/packages/source/p/progressbar2/'],
    }),
    ('scikit-image', '0.14.2', {
        'modulename': 'skimage',
        'source_urls': ['https://pypi.python.org/packages/source/s/scikit-image/'],
    }),
    ('PyNaCl', '1.3.0', {
        'modulename': 'nacl',
        'source_urls': ['https://pypi.python.org/packages/source/p/PyNaCl/'],
    }),
    ('descartes', '1.1.0', {
        'modulename': 'descartes',
        'source_urls': ['https://pypi.python.org/packages/source/d/descartes/'],
        'checksums': ['135a502146af5ed6ff359975e2ebc5fa4b71b5432c355c2cafdc6dea1337035b'],
    }),
    ('graphviz', '0.10.1', {
        'modulename': 'graphviz',
        'source_tmpl': '%(version)s.tar.gz',
        'source_urls': ['https://github.com/xflr6/graphviz/archive/'],
    }),
    ('wcwidth', '0.1.7', {
        'modulename': 'wcwidth',
        'source_urls': ['https://pypi.python.org/packages/source/w/wcwidth/'],
    }),
    ('Bottleneck', '1.2.1', {
        'modulename': 'bottleneck',
        'source_urls': ['https://pypi.python.org/packages/source/b/Bottleneck/'],
    }),
    ('pickleshare', '0.7.5', {
        'modulename': 'pickleshare',
        'source_urls': ['https://pypi.python.org/packages/source/p/pickleshare/'],
    }),
    ('simplegeneric', '0.8.1', {
        'source_tmpl': '%(name)s-%(version)s.zip',
        'modulename': 'simplegeneric',
        'source_urls': ['https://pypi.python.org/packages/source/s/simplegeneric/'],
    }),
    ('prompt_toolkit', '2.0.9', {
        'modulename': 'prompt_toolkit',
        'source_urls': ['https://pypi.python.org/packages/source/p/prompt_toolkit/'],
    }),
    ('Pygments', '2.4.2', {
        'modulename': 'pygments',
        'source_urls': ['https://pypi.python.org/packages/source/p/Pygments/'],
    }),
    ('ptyprocess', '0.6.0', {
        'modulename': 'ptyprocess',
        'source_urls': ['https://pypi.python.org/packages/source/p/ptyprocess/'],
    }),
    ('pexpect', '4.7.0', {
        'modulename': 'pexpect',
        'source_urls': ['https://pypi.python.org/packages/source/p/pexpect/'],
    }),
    ('typelib', '0.0.10', {
        'modulename': 'typelib',
        'source_urls': ['https://pypi.python.org/packages/source/t/typelib/'],
    }),
    ('testpath', '0.4.2', {
        'modulename': 'testpath',
        'source_urls': ['https://pypi.python.org/packages/source/t/testpath/'],
    }),
    ('parso', '0.4.0', {
        'modulename': 'parso',
        'source_urls': ['https://pypi.python.org/packages/source/p/parso/'],
    }),
    ('jedi', '0.13.3', {
        'modulename': 'jedi',
        'source_urls': ['https://pypi.python.org/packages/source/j/jedi/'],
    }),
    ('backcall', '0.1.0', {
        'modulename': 'backcall',
        'source_urls': ['https://pypi.python.org/packages/source/b/backcall/'],
    }),
    ('scikit-learn', '0.20.3', {
        'modulename': 'sklearn',
        'source_urls': ['https://pypi.python.org/packages/source/s/scikit-learn/'],
    }),
    ('basemap', '1.2.0rel', {
        'modulename': 'mpl_toolkits',
        'source_tmpl': 'v%(version)s.tar.gz',
        'source_urls': ['https://github.com/matplotlib/basemap/archive'],
    }),
    ('ldap3', '2.6', {
        'modulename': 'ldap3',
        'source_urls': ['https://pypi.python.org/packages/source/l/ldap3/'],
    }),
    ('skills', '0.3.0', {
        'modulename': 'skills',
        'source_tmpl': '%(name)s-%(version)s.zip',
        'source_urls': ['https://pypi.python.org/packages/source/s/skills/'],
    }),
    ('XlsxWriter', '1.1.7', {
        'modulename': 'xlsxwriter',
        'source_urls': ['https://pypi.python.org/packages/source/x/XlsxWriter/'],
    }),
    ('retrying', '1.3.3', {
        'modulename': 'retrying',
        'source_urls': ['https://pypi.python.org/packages/source/r/retrying/'],
    }),
    ('pyrsistent', '0.15.2', {
        'modulename': 'pyrsistent',
        'source_urls': ['https://pypi.python.org/packages/source/p/pyrsistent/'],
    }),
    ('jsonschema', '3.0.1', {
        'modulename': 'jsonschema',
        'source_urls': ['https://pypi.python.org/packages/source/j/jsonschema/'],
    }),
    ('imagesize', '1.1.0', {
        'modulename': 'imagesize',
        'source_urls': ['https://pypi.python.org/packages/source/i/imagesize/'],
    }),
    ('Babel', '2.7.0', {
        'modulename': 'babel',
        'source_urls': ['https://pypi.python.org/packages/source/b/Babel/'],
    }),
    ('alabaster', '0.7.12', {
        'modulename': 'alabaster',
        'source_urls': ['https://pypi.python.org/packages/source/a/alabaster/'],
    }),
    ('sphinxcontrib_htmlhelp', '1.0.2', {
        'modulename': 'sphinxcontrib_htmlhelp',
        'source_urls': ['https://pypi.python.org/packages/source/s/sphinxcontrib_htmlhelp/'],
    }),
    ('sphinxcontrib_qthelp', '1.0.2', {
        'modulename': 'sphinxcontrib_qthelp',
        'source_urls': ['https://pypi.python.org/packages/source/s/sphinxcontrib_qthelp/'],
    }),
    ('sphinxcontrib_serializinghtml', '1.1.3', {
        'modulename': 'sphinxcontrib_serializinghtml',
        'source_urls': ['https://pypi.python.org/packages/source/s/sphinxcontrib_serializinghtml/'],
    }),
    ('sphinxcontrib_devhelp', '1.0.1', {
        'modulename': 'sphinxcontrib_devhelp',
        'source_urls': ['https://pypi.python.org/packages/source/s/sphinxcontrib_devhelp/'],
    }),
    ('sphinxcontrib_applehelp', '1.0.1', {
        'modulename': 'sphinxcontrib_applehelp',
        'source_urls': ['https://pypi.python.org/packages/source/s/sphinxcontrib_applehelp/'],
    }),
    ('snowballstemmer', '1.2.1', {
        'modulename': 'snowballstemmer',
        'source_urls': ['https://pypi.python.org/packages/source/s/snowballstemmer/'],
    }),
    ('sphinxcontrib_jsmath', '1.0.1', {
        'modulename': 'sphinxcontrib_jsmath',
        'source_urls': ['https://pypi.python.org/packages/source/s/sphinxcontrib_jsmath/'],
    }),
    ('Sphinx', '2.0.1', {
        'source_urls': ['https://pypi.python.org/packages/source/s/Sphinx/'],
        'modulename': 'sphinx',
    }),
    ('SkillMetrics', '1.1.6', {
        'modulename': 'skill_metrics',
        'source_urls': ['https://pypi.python.org/packages/source/s/SkillMetrics/'],
    }),
    #('salem', '0.2.4', {
    #    'modulename': 'salem',
    #    'source_urls': ['https://pypi.python.org/packages/source/s/salem/'],
    #    'checksums': ['f29594c31124b9f1198ba3361850d57e180e3ea228bebe08080760195b96558c'],
    #}),
    ################################
    # R extension
    ('ncdf4', '1.16', {
        'source_tmpl': '%(name)s_%(version)s.tar.gz',
        'source_urls': [
            'http://cran.r-project.org/src/contrib/Archive/ncdf4',
            'http://cran.r-project.org/src/contrib/',
            'http://cran.freestatistics.org/src/contrib',
        ],
        'checksums': ['edd5731a805bbece3a8f6132c87c356deafc272351e1dd07256ca00574949253'],
    }),
    ('gdtools', '0.1.7', {
        'source_tmpl': '%(name)s_%(version)s.tar.gz',
        'source_urls': [
            'http://cran.r-project.org/src/contrib/Archive/gdtools',
            'http://cran.r-project.org/src/contrib/',
            'http://cran.freestatistics.org/src/contrib',
        ],
    }),
    ('leaflet', '2.0.2', {
        'source_tmpl': '%(name)s_%(version)s.tar.gz',
        'source_urls': [
            'http://cran.r-project.org/src/contrib/Archive/leaflet',
            'http://cran.r-project.org/src/contrib/',
            'http://cran.freestatistics.org/src/contrib',
        ],
    }),
    ('satellite', '1.0.1', {
        'source_tmpl': '%(name)s_%(version)s.tar.gz',
        'source_urls': [
            'http://cran.r-project.org/src/contrib/Archive/satellite',
            'http://cran.r-project.org/src/contrib/',
            'http://cran.freestatistics.org/src/contrib',
        ],
    }),
    ('sf', '0.7-3', {
        'source_tmpl': '%(name)s_%(version)s.tar.gz',
        'source_urls': [
            'http://cran.r-project.org/src/contrib/Archive/sf',
            'http://cran.r-project.org/src/contrib/',
            'http://cran.freestatistics.org/src/contrib',
        ],
    }),
    ('svglite', '1.2.1', {
        'source_tmpl': '%(name)s_%(version)s.tar.gz',
        'source_urls': [
            'http://cran.r-project.org/src/contrib/Archive/svglite',
            'http://cran.r-project.org/src/contrib/',
            'http://cran.freestatistics.org/src/contrib',
        ],
    }),
    ('mapview', '2.6.3', {
        'source_tmpl': '%(name)s_%(version)s.tar.gz',
        'source_urls': [
            'http://cran.r-project.org/src/contrib/Archive/mapview',
            'http://cran.r-project.org/src/contrib/',
            'http://cran.freestatistics.org/src/contrib',
        ],
    }),
    ('MuMIn', '1.43.6', {
        'source_tmpl': '%(name)s_%(version)s.tar.gz',
        'source_urls': [
            'http://cran.r-project.org/src/contrib/Archive/MuMIn',
            'http://cran.r-project.org/src/contrib/',
            'http://cran.freestatistics.org/src/contrib',
        ],
    }),
    ('BayesianTools', '0.1.6', {
        'source_tmpl': '%(name)s_%(version)s.tar.gz',
        'source_urls': [
            'http://cran.r-project.org/src/contrib/Archive/BayesianTools',
            'http://cran.r-project.org/src/contrib/',
            'http://cran.freestatistics.org/src/contrib',
        ],
    }),
]

sanity_check_paths = {
    'files': ['sf/libs/sf.so'],
    'dirs': [],
}

postinstallcmds = [
    "cd %(installdir)s/bin && " +
    'chmod 755 pip'
]

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

moduleclass = 'numlib'
