nixpkgs/pkgs/development/python-modules/wrf-python/default.nix
Martin Weinelt a725e9285f python3Packages.wrf-python: 1.4.0 -> 1.4.2
This commit was automatically generated using update-python-libraries.
2026-02-01 17:40:49 +01:00

57 lines
1.1 KiB
Nix

{
lib,
fetchFromGitHub,
buildPythonPackage,
basemap,
gfortran,
netcdf4,
numpy,
python,
setuptools,
xarray,
wrapt,
}:
buildPythonPackage rec {
pname = "wrf-python";
version = "1.4.2";
format = "setuptools";
src = fetchFromGitHub {
owner = "NCAR";
repo = "wrf-python";
tag = "v${version}";
hash = "sha256-4k0HsWIthFdkXQ5ld65vEcUtR1vqwKuH08lgQdcDh2E=";
};
nativeBuildInputs = [ gfortran ];
propagatedBuildInputs = [
basemap
numpy
setuptools
xarray
wrapt
];
nativeCheckInputs = [ netcdf4 ];
checkPhase = ''
runHook preCheck
cd ./test/ci_tests
${python.interpreter} utests.py
runHook postCheck
'';
pythonImportsCheck = [ "wrf" ];
meta = {
# `ModuleNotFoundError: No module named 'distutils.msvccompiler'` on Python 3.11
# `ModuleNotFoundError: No module named 'numpy.distutils'` on Python 3.12
broken = true;
description = "WRF postprocessing library for Python";
homepage = "http://wrf-python.rtfd.org";
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [ mhaselsteiner ];
};
}