2020-04-24 23:36:52 +00:00
|
|
|
{lib, fetchFromGitHub, pythonOlder, buildPythonPackage, gfortran, mock, xarray, wrapt, numpy, netcdf4, setuptools}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "wrf-python";
|
2022-01-23 02:10:13 +00:00
|
|
|
version = "1.3.2.6";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "NCAR";
|
|
|
|
repo = "wrf-python";
|
|
|
|
rev = version;
|
2022-01-23 02:10:13 +00:00
|
|
|
sha256 = "046kflai71r7xrmdw6jn0ifn5656wj9gpnwlgxkx430dgk7zbc2y";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
wrapt
|
|
|
|
numpy
|
|
|
|
setuptools
|
|
|
|
xarray
|
|
|
|
];
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
gfortran
|
|
|
|
];
|
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
netcdf4
|
|
|
|
] ++ lib.optional (pythonOlder "3.3") mock;
|
|
|
|
|
|
|
|
doCheck = true;
|
|
|
|
checkPhase = ''
|
|
|
|
runHook preCheck
|
|
|
|
cd ./test/ci_tests
|
|
|
|
python utests.py
|
|
|
|
runHook postCheck
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "WRF postprocessing library for Python";
|
|
|
|
homepage = "http://wrf-python.rtfd.org";
|
|
|
|
license = lib.licenses.asl20;
|
|
|
|
maintainers = with lib.maintainers; [ mhaselsteiner ];
|
2021-02-05 17:12:51 +00:00
|
|
|
};
|
2020-04-24 23:36:52 +00:00
|
|
|
}
|