diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 222b9150511d..5b565d1242b8 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -3965,6 +3965,41 @@ let }; }; + netcdf4 = buildPythonPackage rec { + name = "netCDF4-${version}"; + version = "1.1.8"; + + disabled = isPyPy; + + src = pkgs.fetchurl { + url = "https://pypi.python.org/packages/source/n/netCDF4/${name}.tar.gz"; + sha256 = "0y6s8g82rbij0brh9hz3aapyyq6apj8fpmhhlyibz1354as7rjq1"; + }; + + propagatedBuildInputs = with self ; [ + numpy + pkgs.zlib + pkgs.netcdf + pkgs.hdf5 + pkgs.curl + pkgs.libjpeg + ]; + + patchPhase = '' + export USE_NCCONFIG=0 + export HDF5_DIR="${pkgs.hdf5}" + export NETCDF4_DIR="${pkgs.netcdf}" + export CURL_DIR="${pkgs.curl}" + export JPEG_DIR="${pkgs.libjpeg}" + ''; + + meta = { + description = "interface to netCDF library (versions 3 and 4)"; + homepage = https://pypi.python.org/pypi/netCDF4; + license = licenses.free; # Mix of license (all MIT* like) + }; + }; + odfpy = buildPythonPackage rec { version = "0.9.6"; name = "odfpy-${version}";