Merge pull request #202098 from r-ryantm/auto-update/python310Packages.netcdf4

python310Packages.netcdf4: 1.6.1 -> 1.6.2
This commit is contained in:
Mario Rodas 2022-11-30 08:10:01 -05:00 committed by GitHub
commit 3a7411bf27
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,22 +1,32 @@
{ lib, buildPythonPackage, fetchPypi, isPyPy, pytest
, numpy, zlib, netcdf, hdf5, curl, libjpeg, cython, cftime
{ lib
, buildPythonPackage
, fetchPypi
, isPyPy
, python
, setuptools
, numpy
, zlib
, netcdf
, hdf5
, curl
, libjpeg
, cython
, cftime
}:
buildPythonPackage rec {
pname = "netCDF4";
version = "1.6.1";
version = "1.6.2";
format = "pyproject";
disabled = isPyPy;
src = fetchPypi {
inherit pname version;
sha256 = "sha256-uo3F1lKTqZ8a+4wqz1iNkD/f3BljpiVFtnf6JzQmKng=";
sha256 = "sha256-A4KwL/aiiEGfb/7IXexA9FH0G4dVVHFUxXXd2fD0rlM=";
};
checkInputs = [ pytest ];
buildInputs = [
cython
];
nativeBuildInputs = [ setuptools cython ];
propagatedBuildInputs = [
cftime
@ -29,22 +39,24 @@ buildPythonPackage rec {
];
checkPhase = ''
py.test test/tst_*.py
pushd test/
NO_NET=1 NO_CDL=1 ${python.interpreter} run_all.py
'';
# Tests need fixing.
doCheck = false;
# Variables used to configure the build process
USE_NCCONFIG="0";
USE_NCCONFIG = "0";
HDF5_DIR = lib.getDev hdf5;
NETCDF4_DIR=netcdf;
CURL_DIR=curl.dev;
JPEG_DIR=libjpeg.dev;
NETCDF4_DIR = netcdf;
CURL_DIR = curl.dev;
JPEG_DIR = libjpeg.dev;
pythonImportsCheckHook = [ "netcdf4" ];
meta = with lib; {
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)
homepage = "https://github.com/Unidata/netcdf4-python";
changelog = "https://github.com/Unidata/netcdf4-python/raw/v${version}/Changelog";
maintainers = with maintainers; [ ];
license = licenses.mit;
};
}