1{ stdenv, buildPythonPackage, fetchurl, isPyPy
2, numpy, zlib, netcdf, hdf5, curl, libjpeg, cython
3}:
4buildPythonPackage rec {
5 pname = "netCDF4";
6 name = "${pname}-${version}";
7 version = "1.2.9";
8
9 disabled = isPyPy;
10
11 src = fetchurl {
12 url = "mirror://pypi/n/netCDF4/${name}.tar.gz";
13 sha256 = "259edab1f03b1c1b93bdbaa804d50211a0c9d8a15eee4f23988b5685c6c0d2c0";
14 };
15
16 buildInputs = [
17 cython
18 ];
19
20 propagatedBuildInputs = [
21 numpy
22 zlib
23 netcdf
24 hdf5
25 curl
26 libjpeg
27 ];
28
29 # Variables used to configure the build process
30 USE_NCCONFIG="0";
31 HDF5_DIR="${hdf5}";
32 NETCDF4_DIR="${netcdf}";
33 CURL_DIR="${curl.dev}";
34 JPEG_DIR="${libjpeg.dev}";
35
36 meta = with stdenv.lib; {
37 description = "Interface to netCDF library (versions 3 and 4)";
38 homepage = https://pypi.python.org/pypi/netCDF4;
39 license = licenses.free; # Mix of license (all MIT* like)
40 };
41}