easyblock = 'ConfigureMake' name = 'NCO' version = '5.3.6' homepage = "https://github.com/nco/nco" description = """The NCO toolkit manipulates and analyzes data stored in netCDF-accessible formats, including DAP, HDF4, and HDF5.""" toolchain = {'name': 'foss', 'version': '2025b'} source_urls = ['https://github.com/nco/nco/archive/'] sources = ['%(version)s.tar.gz'] checksums = ['70d64f461a0d5262274495ee1a9d85735aa3115281fdf01df4f946a919f9f6ae'] builddependencies = [ ('Bison', '3.8.2'), ('flex', '2.6.4'), ] dependencies = [ ('UDUNITS', '2.2.28'), ('expat', '2.7.1'), ('ANTLR', '2.7.7'), ('libdap', '3.21.1'), ('GSL', '2.8'), ('netCDF', '4.9.3'), ('ESMF', '8.9.0'), # ncremap needs ESMF_RegridWeightGen ] configopts = "--enable-nco_cplusplus" sanity_check_paths = { 'files': ['bin/nc%s' % x for x in ('ap2', 'atted', 'bo', 'diff', 'ea', 'ecat', 'es', 'flint', 'ks', 'pdq', 'ra', 'rcat', 'rename', 'wa')] + ['lib/libnco.a', 'lib/libnco.%s' % SHLIB_EXT, 'lib/libnco_c++.a', 'lib/libnco_c++.%s' % SHLIB_EXT], 'dirs': ['include'], } sanity_check_commands = [ "ncks -O -7 --cnk_dmn time,10 " "%(builddir)s/%(namelower)s-%(version)s/data/in.nc %(builddir)s/%(namelower)s-%(version)s/data/in4.cdl" ] moduleclass = 'tools'