easyblock = 'Bundle'

name = 'gdc-client'
version = '1.3.0'
versionsuffix = '-Python-%(pyver)s'

homepage = 'https://gdc.nci.nih.gov/access-data/gdc-data-transfer-tool'
description = """The gdc-client provides several convenience functions over the GDC API which provides general
 download/upload via HTTPS."""

toolchain = {'name': 'intel', 'version': '2017b'}

# this is a bundle of Python packages
exts_defaultclass = 'PythonPackage'

dependencies = [
    ('Python', '2.7.14'),
    ('libxslt', '1.1.32'),
    ('libyaml', '0.1.7'),
]

exts_list = [
    ('pyasn1', '0.2.3', {
        'source_urls': ['https://pypi.python.org/packages/source/p/pyasn1'],
        'checksums': ['738c4ebd88a718e700ee35c8d129acce2286542daa80a82823a7073644f706ad'],
    }),
    ('pycparser', '2.18', {
        'source_urls': ['https://pypi.python.org/packages/source/p/pycparser'],
        'checksums': ['99a8ca03e29851d96616ad0404b4aad7d9ee16f25c9f9708a11faf2810f7b226'],
    }),
    ('cffi', '1.11.2', {
        'source_urls': ['https://pypi.python.org/packages/source/c/cffi'],
        'checksums': ['ab87dd91c0c4073758d07334c1e5f712ce8fe48f007b86f8238773963ee700a6'],
    }),
    ('cryptography', '2.1.4', {
        'source_urls': ['https://pypi.python.org/packages/source/c/cryptography'],
        'checksums': ['e4d967371c5b6b2e67855066471d844c5d52d210c36c28d49a8507b96e2c5291'],
    }),
    ('pyOpenSSL', '17.1.0', {
        'modulename': 'OpenSSL',
        'source_urls': ['https://pypi.python.org/packages/source/p/pyOpenSSL'],
        'checksums': ['5a20a51d35104cd234d056861ace3e7a335aaf1f47fc96726c9e20ac1dc49563'],
    }),
    ('ndg-httpsclient', '0.4.2', {
        'modulename': 'ndg',
        'source_tmpl': 'ndg_httpsclient-%(version)s.tar.gz',
        'source_urls': ['https://pypi.python.org/packages/source/n/ndg-httpsclient'],
        'checksums': ['580987ef194334c50389e0d7de885fccf15605c13c6eecaabd8d6c43768eb8ac'],
    }),
    ('lxml', '3.5.0b1', {
        'source_urls': ['https://pypi.python.org/packages/source/l/lxml'],
        'checksums': ['2244fadf836c45249bc31a4a959cf606fbcd675b3db6ffb50311d9f94a25e28b'],
    }),
    ('PyYAML', '3.11', {
        'modulename': 'yaml',
        'source_urls': ['https://pypi.python.org/packages/source/P/PyYAML'],
        'checksums': ['c36c938a872e5ff494938b33b14aaa156cb439ec67548fcab3535bb78b0846e8'],
    }),
    ('functools32', '3.2.3-2', {
        'source_urls': ['https://pypi.python.org/packages/source/f/functools32'],
        'checksums': ['f6253dfbe0538ad2e387bd8fdfd9293c925d63553f5813c4e587745416501e6d'],
    }),
    ('jsonschema', '2.5.1', {
        'source_urls': ['https://pypi.python.org/packages/source/j/jsonschema'],
        'checksums': ['36673ac378feed3daa5956276a829699056523d7961027911f064b52255ead41'],
    }),
    ('cmd2', '0.6.8', {
        'source_urls': ['https://pypi.python.org/packages/source/c/cmd2'],
        'checksums': ['ac780d8c31fc107bf6b4edcbcea711de4ff776d59d89bb167f8819d2d83764a8'],
    }),
    ('termcolor', '1.1.0', {
        'source_urls': ['https://pypi.python.org/packages/source/t/termcolor'],
        'checksums': ['1d6d69ce66211143803fbc56652b41d73b4a400a2891d7bf7a1cdf4c02de613b'],
    }),
    ('sortedcontainers', '1.5.9', {
        'source_urls': ['https://pypi.python.org/packages/source/s/sortedcontainers'],
        'checksums': ['844daced0f20d75c02ce53f373d048ea2e401ad8a7b3a4c43b2aa544b569efb3'],
    }),
    ('intervaltree', '2.0.4', {
        'source_urls': ['https://pypi.python.org/packages/source/i/intervaltree'],
        'checksums': ['d5c45ce8874ef04303c02b66327793320aa2027cf25c89188f74be69beaa3c5f'],
    }),
    ('itsdangerous', '0.24', {
        'source_urls': ['https://pypi.python.org/packages/source/i/itsdangerous'],
        'checksums': ['cbb3fcf8d3e33df861709ecaf89d9e6629cff0a217bc2848f1b41cd30d360519'],
    }),
    ('MarkupSafe', '1.0', {
        'source_urls': ['https://pypi.python.org/packages/source/M/MarkupSafe'],
        'checksums': ['a6be69091dac236ea9c6bc7d012beab42010fa914c459791d627dad4910eb665'],
    }),
    ('Jinja2', '2.10', {
        'source_urls': ['https://pypi.python.org/packages/source/J/Jinja2'],
        'checksums': ['f84be1bb0040caca4cea721fcbbbbd61f9be9464ca236387158b0feea01914a4'],
    }),
    ('Werkzeug', '0.13', {
        'source_urls': ['https://pypi.python.org/packages/source/W/Werkzeug'],
        'checksums': ['6246e5fc98a505824113fb6aca993d45ea284a2bcffdc2c65d0c538e53e4abd3'],
    }),
    ('Flask', '0.10.1', {
        'source_urls': ['https://pypi.python.org/packages/source/F/Flask'],
        'checksums': ['4c83829ff83d408b5e1d4995472265411d2c414112298f2eb4b359d9e4563373'],
    }),
    ('progressbar', '2.3', {
        'source_urls': ['https://pypi.python.org/packages/source/p/progressbar'],
        'checksums': ['b2d38a729785149e65323381d2e6fca0a5e9615a6d8bcf10bfa8adedfc481254'],
    }),
    ('requests', '2.5.1', {
        'source_urls': ['https://pypi.python.org/packages/source/r/requests'],
        'checksums': ['7b7735efd3b1e2323dc9fcef060b380d05f5f18bd0f247f5e9e74a628279de66'],
    }),
    ('parcel', '20170814', {
        'source_tmpl': '50d6124a3e3fcd2a234b3373831075390b886a15.tar.gz',
        'source_urls': ['https://github.com/LabAdvComp/parcel/archive'],
        'checksums': ['f7d394a34387358e2b4b2e9f0ba8ebf28bc6bc4567627b69765e91cfe29b6795'],
    }),
    (name, version, {
        'modulename': 'gdc_client',
        'source_tmpl': '%(version)s.tar.gz',
        'source_urls': ['https://github.com/NCI-GDC/gdc-client/archive'],
        'checksums': ['2a847f7498491fe69f86f163b9adc6ba752e740f5f17791da8c17a336a84751f'],
    }),
]

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

# specify that Bundle easyblock should run a full sanity check, rather than just trying to load the module
full_sanity_check = True

sanity_check_paths = {
    'files': ['bin/gdc-client'],
    'dirs': ['lib/python%(pyshortver)s/site-packages'],
}

moduleclass = 'tools'
