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 { lib
, numpy, zlib, netcdf, hdf5, curl, libjpeg, cython, cftime , buildPythonPackage
, fetchPypi
, isPyPy
, python
, setuptools
, numpy
, zlib
, netcdf
, hdf5
, curl
, libjpeg
, cython
, cftime
}: }:
buildPythonPackage rec { buildPythonPackage rec {
pname = "netCDF4"; pname = "netCDF4";
version = "1.6.1"; version = "1.6.2";
format = "pyproject";
disabled = isPyPy; disabled = isPyPy;
src = fetchPypi { src = fetchPypi {
inherit pname version; inherit pname version;
sha256 = "sha256-uo3F1lKTqZ8a+4wqz1iNkD/f3BljpiVFtnf6JzQmKng="; sha256 = "sha256-A4KwL/aiiEGfb/7IXexA9FH0G4dVVHFUxXXd2fD0rlM=";
}; };
checkInputs = [ pytest ]; nativeBuildInputs = [ setuptools cython ];
buildInputs = [
cython
];
propagatedBuildInputs = [ propagatedBuildInputs = [
cftime cftime
@ -29,22 +39,24 @@ buildPythonPackage rec {
]; ];
checkPhase = '' 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 # Variables used to configure the build process
USE_NCCONFIG="0"; USE_NCCONFIG = "0";
HDF5_DIR = lib.getDev hdf5; HDF5_DIR = lib.getDev hdf5;
NETCDF4_DIR=netcdf; NETCDF4_DIR = netcdf;
CURL_DIR=curl.dev; CURL_DIR = curl.dev;
JPEG_DIR=libjpeg.dev; JPEG_DIR = libjpeg.dev;
pythonImportsCheckHook = [ "netcdf4" ];
meta = with lib; { meta = with lib; {
description = "Interface to netCDF library (versions 3 and 4)"; description = "Interface to netCDF library (versions 3 and 4)";
homepage = "https://pypi.python.org/pypi/netCDF4"; homepage = "https://github.com/Unidata/netcdf4-python";
license = licenses.free; # Mix of license (all MIT* like) changelog = "https://github.com/Unidata/netcdf4-python/raw/v${version}/Changelog";
maintainers = with maintainers; [ ];
license = licenses.mit;
}; };
} }