easyblock = 'Binary'

name = 'orca'
version = '1.2.1'
nodejsver = '8.9.4'
versionsuffix = '-nodejs-%s' % nodejsver

homepage = 'https://github.com/plotly/orca'
description = """Orca is an Electron app that generates images and reports of Plotly things like 
 plotly.js graphs, dash apps, dashboards from the command line. Additionally, Orca is the backbone 
 of Plotly's Image Server. Orca is also an acronym for Open-source Report Creator App."""

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

source_urls = ['https://github.com/plotly/orca/archive/']
sources = ['v%(version)s.tar.gz']

dependencies = [
    ('nodejs', nodejsver),
    ('X11', '20180604'),
]

install_cmd = 'npm install --prefix %(installdir)s -g electron@1.8.4 %(name)s'

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

moduleclass = 'tools'
