Files
nixpkgs/pkgs/development/python-modules/wrf-python/default.nix
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

61 lines
1.1 KiB
Nix

{
lib,
fetchFromGitHub,
pythonOlder,
buildPythonPackage,
basemap,
gfortran,
netcdf4,
numpy,
python,
setuptools,
xarray,
wrapt,
}:
buildPythonPackage rec {
pname = "wrf-python";
version = "1.4.0";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "NCAR";
repo = "wrf-python";
tag = "v${version}";
hash = "sha256-LvNorZ28j/O8fs9z6jhYWC8RcCDIwh7k5iR9iumCvnQ=";
};
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 ];
};
}