# IT4Innovations 2022
# JK

easyblock = 'Binary'

name = 'NodeODM'
version = '2.2.0'
local_nodejsver = '16.15.1'

homepage = 'https://github.com/request/request/'
description = """Request is designed to be the simplest way possible to make http calls. 
    It supports HTTPS and follows redirects by default."""

toolchain = {'name': 'GCCcore', 'version': '11.3.0'}

source_urls = ['https://github.com/OpenDroneMap/NodeODM/archive/refs/tags/']
sources = ['v%(version)s.tar.gz']
checksums = ['b901ea27d684774c3a978a474aa0473481ae7fbfaada30a0385e9029e96911fc']

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

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

sanity_check_paths = {
    'files': [],
    'dirs': ['lib/node_modules/%(name)s'],
}

moduleclass = 'data'
