nixpkgs/pkgs/development/libraries/eccodes/default.nix
R. RyanTM 8e8b420616 eccodes: 2.7.3 -> 2.8.0 (#42713)
Semi-automatic update generated by https://github.com/ryantm/nixpkgs-update tools.

This update was made based on information from https://repology.org/metapackage/eccodes/versions.

These checks were done:

- built on NixOS
- Warning: no invocation of /nix/store/jbapwbwcmj3j9z60f1gmi5nig6m7h54r-eccodes-2.8.0/bin/bufr_compare_dir had a zero exit code or showed the expected version
- /nix/store/jbapwbwcmj3j9z60f1gmi5nig6m7h54r-eccodes-2.8.0/bin/codes_info passed the binary check.
- Warning: no invocation of /nix/store/jbapwbwcmj3j9z60f1gmi5nig6m7h54r-eccodes-2.8.0/bin/codes_count had a zero exit code or showed the expected version
- Warning: no invocation of /nix/store/jbapwbwcmj3j9z60f1gmi5nig6m7h54r-eccodes-2.8.0/bin/codes_split_file had a zero exit code or showed the expected version
- /nix/store/jbapwbwcmj3j9z60f1gmi5nig6m7h54r-eccodes-2.8.0/bin/grib_histogram passed the binary check.
- /nix/store/jbapwbwcmj3j9z60f1gmi5nig6m7h54r-eccodes-2.8.0/bin/grib_filter passed the binary check.
- /nix/store/jbapwbwcmj3j9z60f1gmi5nig6m7h54r-eccodes-2.8.0/bin/grib_ls passed the binary check.
- /nix/store/jbapwbwcmj3j9z60f1gmi5nig6m7h54r-eccodes-2.8.0/bin/grib_dump passed the binary check.
- /nix/store/jbapwbwcmj3j9z60f1gmi5nig6m7h54r-eccodes-2.8.0/bin/grib_merge passed the binary check.
- /nix/store/jbapwbwcmj3j9z60f1gmi5nig6m7h54r-eccodes-2.8.0/bin/grib2ppm passed the binary check.
- /nix/store/jbapwbwcmj3j9z60f1gmi5nig6m7h54r-eccodes-2.8.0/bin/grib_set passed the binary check.
- /nix/store/jbapwbwcmj3j9z60f1gmi5nig6m7h54r-eccodes-2.8.0/bin/grib_get passed the binary check.
- /nix/store/jbapwbwcmj3j9z60f1gmi5nig6m7h54r-eccodes-2.8.0/bin/grib_get_data passed the binary check.
- /nix/store/jbapwbwcmj3j9z60f1gmi5nig6m7h54r-eccodes-2.8.0/bin/grib_copy passed the binary check.
- /nix/store/jbapwbwcmj3j9z60f1gmi5nig6m7h54r-eccodes-2.8.0/bin/grib_compare passed the binary check.
- Warning: no invocation of /nix/store/jbapwbwcmj3j9z60f1gmi5nig6m7h54r-eccodes-2.8.0/bin/codes_parser had a zero exit code or showed the expected version
- /nix/store/jbapwbwcmj3j9z60f1gmi5nig6m7h54r-eccodes-2.8.0/bin/grib_index_build passed the binary check.
- /nix/store/jbapwbwcmj3j9z60f1gmi5nig6m7h54r-eccodes-2.8.0/bin/bufr_ls passed the binary check.
- /nix/store/jbapwbwcmj3j9z60f1gmi5nig6m7h54r-eccodes-2.8.0/bin/bufr_dump passed the binary check.
- /nix/store/jbapwbwcmj3j9z60f1gmi5nig6m7h54r-eccodes-2.8.0/bin/bufr_set passed the binary check.
- /nix/store/jbapwbwcmj3j9z60f1gmi5nig6m7h54r-eccodes-2.8.0/bin/bufr_get passed the binary check.
- /nix/store/jbapwbwcmj3j9z60f1gmi5nig6m7h54r-eccodes-2.8.0/bin/bufr_copy passed the binary check.
- /nix/store/jbapwbwcmj3j9z60f1gmi5nig6m7h54r-eccodes-2.8.0/bin/bufr_compare passed the binary check.
- /nix/store/jbapwbwcmj3j9z60f1gmi5nig6m7h54r-eccodes-2.8.0/bin/bufr_index_build passed the binary check.
- /nix/store/jbapwbwcmj3j9z60f1gmi5nig6m7h54r-eccodes-2.8.0/bin/gts_get passed the binary check.
- /nix/store/jbapwbwcmj3j9z60f1gmi5nig6m7h54r-eccodes-2.8.0/bin/gts_compare passed the binary check.
- /nix/store/jbapwbwcmj3j9z60f1gmi5nig6m7h54r-eccodes-2.8.0/bin/gts_copy passed the binary check.
- /nix/store/jbapwbwcmj3j9z60f1gmi5nig6m7h54r-eccodes-2.8.0/bin/gts_dump passed the binary check.
- /nix/store/jbapwbwcmj3j9z60f1gmi5nig6m7h54r-eccodes-2.8.0/bin/gts_filter passed the binary check.
- /nix/store/jbapwbwcmj3j9z60f1gmi5nig6m7h54r-eccodes-2.8.0/bin/gts_ls passed the binary check.
- /nix/store/jbapwbwcmj3j9z60f1gmi5nig6m7h54r-eccodes-2.8.0/bin/metar_dump passed the binary check.
- /nix/store/jbapwbwcmj3j9z60f1gmi5nig6m7h54r-eccodes-2.8.0/bin/metar_ls passed the binary check.
- /nix/store/jbapwbwcmj3j9z60f1gmi5nig6m7h54r-eccodes-2.8.0/bin/metar_compare passed the binary check.
- /nix/store/jbapwbwcmj3j9z60f1gmi5nig6m7h54r-eccodes-2.8.0/bin/metar_get passed the binary check.
- /nix/store/jbapwbwcmj3j9z60f1gmi5nig6m7h54r-eccodes-2.8.0/bin/metar_filter passed the binary check.
- /nix/store/jbapwbwcmj3j9z60f1gmi5nig6m7h54r-eccodes-2.8.0/bin/metar_copy passed the binary check.
- Warning: no invocation of /nix/store/jbapwbwcmj3j9z60f1gmi5nig6m7h54r-eccodes-2.8.0/bin/grib_count had a zero exit code or showed the expected version
- Warning: no invocation of /nix/store/jbapwbwcmj3j9z60f1gmi5nig6m7h54r-eccodes-2.8.0/bin/bufr_count had a zero exit code or showed the expected version
- /nix/store/jbapwbwcmj3j9z60f1gmi5nig6m7h54r-eccodes-2.8.0/bin/grib_to_netcdf passed the binary check.
- /nix/store/jbapwbwcmj3j9z60f1gmi5nig6m7h54r-eccodes-2.8.0/bin/codes_bufr_filter passed the binary check.
- Warning: no invocation of /nix/store/jbapwbwcmj3j9z60f1gmi5nig6m7h54r-eccodes-2.8.0/bin/tigge_check had a zero exit code or showed the expected version
- Warning: no invocation of /nix/store/jbapwbwcmj3j9z60f1gmi5nig6m7h54r-eccodes-2.8.0/bin/tigge_name had a zero exit code or showed the expected version
- Warning: no invocation of /nix/store/jbapwbwcmj3j9z60f1gmi5nig6m7h54r-eccodes-2.8.0/bin/tigge_accumulations had a zero exit code or showed the expected version
- Warning: no invocation of /nix/store/jbapwbwcmj3j9z60f1gmi5nig6m7h54r-eccodes-2.8.0/bin/tigge_split had a zero exit code or showed the expected version
- /nix/store/jbapwbwcmj3j9z60f1gmi5nig6m7h54r-eccodes-2.8.0/bin/bufr_filter passed the binary check.
- 35 of 45 passed binary check by having a zero exit code.
- 33 of 45 passed binary check by having the new version present in output.
- found 2.8.0 with grep in /nix/store/jbapwbwcmj3j9z60f1gmi5nig6m7h54r-eccodes-2.8.0
- directory tree listing: https://gist.github.com/7edf806095f4a820d000f95893532dca
- du listing: https://gist.github.com/5742e612398104ad9b43d5604dd3c280
2018-07-05 00:21:21 +02:00

53 lines
1.7 KiB
Nix

{ fetchurl, stdenv
, cmake, netcdf, openjpeg, libpng, gfortran
, enablePython ? false, pythonPackages
, enablePosixThreads ? false
, enableOpenMPThreads ? false}:
with stdenv.lib;
stdenv.mkDerivation rec {
name = "eccodes-${version}";
version = "2.8.0";
src = fetchurl {
url = "https://software.ecmwf.int/wiki/download/attachments/45757960/eccodes-${version}-Source.tar.gz";
sha256 = "06rf6yzrszfqm74sq3485c7h6m0xjnz35sm31xkk70fxgk129fp0";
};
nativeBuildInputs = [ cmake ];
buildInputs = [ netcdf
openjpeg
libpng
gfortran
];
propagatedBuildInputs = optionals enablePython [
pythonPackages.python
pythonPackages.numpy
];
cmakeFlags = [ "-DENABLE_PYTHON=${if enablePython then "ON" else "OFF"}"
"-DENABLE_PNG=ON"
"-DENABLE_ECCODES_THREADS=${if enablePosixThreads then "ON" else "OFF"}"
"-DENABLE_ECCODES_OMP_THREADS=${if enableOpenMPThreads then "ON" else "OFF"}"
];
enableParallelBuilding = true;
doCheck = true;
# Only do tests that don't require downloading 120MB of testdata
checkPhase = stdenv.lib.optionalString (stdenv.isDarwin) ''
substituteInPlace "tests/include.sh" --replace "set -ea" "set -ea; export DYLD_LIBRARY_PATH=$(pwd)/lib"
'' + ''
ctest -R "eccodes_t_(definitions|calendar|unit_tests|md5|uerra|grib_2nd_order_numValues|julian)" -VV
'';
meta = {
homepage = https://software.ecmwf.int/wiki/display/ECC/;
license = licenses.asl20;
maintainers = with maintainers; [ knedlsepp ];
platforms = platforms.unix;
description = "ECMWF library for reading and writing GRIB, BUFR and GTS abbreviated header";
};
}