Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib 2, buildPythonPackage 3, fetchPypi 4, isPyPy 5, python 6, oldest-supported-numpy 7, setuptools 8, wheel 9, numpy 10, zlib 11, netcdf 12, hdf5 13, curl 14, libjpeg 15, cython 16, cftime 17}: 18 19buildPythonPackage rec { 20 pname = "netCDF4"; 21 version = "1.6.2"; 22 format = "pyproject"; 23 24 disabled = isPyPy; 25 26 src = fetchPypi { 27 inherit pname version; 28 hash = "sha256-A4KwL/aiiEGfb/7IXexA9FH0G4dVVHFUxXXd2fD0rlM="; 29 }; 30 31 nativeBuildInputs = [ 32 cython 33 oldest-supported-numpy 34 setuptools 35 wheel 36 ]; 37 38 propagatedBuildInputs = [ 39 cftime 40 numpy 41 zlib 42 netcdf 43 hdf5 44 curl 45 libjpeg 46 ]; 47 48 checkPhase = '' 49 pushd test/ 50 NO_NET=1 NO_CDL=1 ${python.interpreter} run_all.py 51 ''; 52 53 # Variables used to configure the build process 54 USE_NCCONFIG = "0"; 55 HDF5_DIR = lib.getDev hdf5; 56 NETCDF4_DIR = netcdf; 57 CURL_DIR = curl.dev; 58 JPEG_DIR = libjpeg.dev; 59 60 pythonImportsCheck = [ "netCDF4" ]; 61 62 meta = with lib; { 63 description = "Interface to netCDF library (versions 3 and 4)"; 64 homepage = "https://github.com/Unidata/netcdf4-python"; 65 changelog = "https://github.com/Unidata/netcdf4-python/raw/v${version}/Changelog"; 66 maintainers = with maintainers; [ ]; 67 license = licenses.mit; 68 }; 69}