2019-11-16 22:45:12 +01:00
|
|
|
{lib, fetchFromGitHub, pythonOlder, buildPythonPackage, gfortran, mock, xarray, wrapt, numpy, netcdf4, setuptools}:
|
2018-10-16 23:02:57 +02:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "wrf-python";
|
2019-11-16 22:45:12 +01:00
|
|
|
version = "1.3.2";
|
2018-10-16 23:02:57 +02:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "NCAR";
|
|
|
|
repo = "wrf-python";
|
|
|
|
rev = version;
|
2019-11-16 22:45:12 +01:00
|
|
|
sha256 = "1rklkki54z5392cpwwy78bnmsy2ghc187l3j7nv0rzn6jk5bvyi7";
|
2018-10-16 23:02:57 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
wrapt
|
|
|
|
numpy
|
2019-11-16 22:45:12 +01:00
|
|
|
setuptools
|
2018-10-16 23:02:57 +02:00
|
|
|
xarray
|
|
|
|
];
|
2019-03-07 13:21:04 +01:00
|
|
|
|
|
|
|
nativeBuildInputs = [
|
2018-10-16 23:02:57 +02:00
|
|
|
gfortran
|
2019-03-07 13:21:04 +01:00
|
|
|
];
|
|
|
|
|
2018-10-16 23:02:57 +02:00
|
|
|
checkInputs = [
|
|
|
|
netcdf4
|
2019-03-07 13:21:04 +01:00
|
|
|
] ++ lib.optional (pythonOlder "3.3") mock;
|
2018-10-16 23:02:57 +02:00
|
|
|
|
|
|
|
doCheck = true;
|
|
|
|
checkPhase = ''
|
|
|
|
runHook preCheck
|
|
|
|
cd ./test/ci_tests
|
|
|
|
python utests.py
|
|
|
|
runHook postCheck
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "WRF postprocessing library for Python";
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "http://wrf-python.rtfd.org";
|
2018-10-16 23:02:57 +02:00
|
|
|
license = lib.licenses.asl20;
|
|
|
|
maintainers = with lib.maintainers; [ mhaselsteiner ];
|
2021-01-19 22:20:11 +01:00
|
|
|
};
|
2019-11-16 22:45:12 +01:00
|
|
|
}
|