python311Packages.netcdf4: fix build with clang 16

This commit is contained in:
Weijia Wang
2023-11-05 23:18:51 +01:00
parent 4baa84761d
commit c26d8cceae
@@ -1,4 +1,5 @@
{ lib
, stdenv
, buildPythonPackage
, fetchPypi
, isPyPy
@@ -50,12 +51,16 @@ buildPythonPackage rec {
NO_NET=1 NO_CDL=1 ${python.interpreter} run_all.py
'';
# Variables used to configure the build process
USE_NCCONFIG = "0";
HDF5_DIR = lib.getDev hdf5;
NETCDF4_DIR = netcdf;
CURL_DIR = curl.dev;
JPEG_DIR = libjpeg.dev;
env = {
# Variables used to configure the build process
USE_NCCONFIG = "0";
HDF5_DIR = lib.getDev hdf5;
NETCDF4_DIR = netcdf;
CURL_DIR = curl.dev;
JPEG_DIR = libjpeg.dev;
} // lib.optionalAttrs stdenv.cc.isClang {
NIX_CFLAGS_COMPILE = "-Wno-error=int-conversion";
};
pythonImportsCheck = [ "netCDF4" ];