easyblock = 'Binary'

name = 'configurable-http-proxy'
version = '3.1.1'
local_nodejsver = '8.9.4'
versionsuffix = '-nodejs-%s' % local_nodejsver

homepage = 'https://github.com/jupyterhub/configurable-http-proxy'
description = """HTTP proxy for node.js including a REST API for updating the routing table.
 Developed as a part of the Jupyter Hub multi-user server."""

toolchain = {'name': 'foss', 'version': '2017a'}

dependencies = [
    ('nodejs', local_nodejsver),
]

source_urls = ['https://github.com/jupyterhub/configurable-http-proxy/archive/']
sources = ['%(version)s.tar.gz']
checksums = ['45079930e33c1322743e2700e699898136a193ada2227c2174741a23297aeec2']

install_cmd = 'npm install --no-package-lock -g --prefix %(installdir)s %(version)s.tar.gz'

sanity_check_commands = ['%(name)s --version']

moduleclass = 'tools'
