nixpkgs/pkgs/development/python-modules/wrf-python/default.nix
Robert Schütz 1a04744f74 treewide: remove superfluous disabled
There is no need to disable Python packages for Python versions that are
no longer in Nixpkgs.
This change was generated using the following script:

    pattern='^\s*disabled\s*=\s*pythonOlder\s*"3\.\([0-9]\|10\)"\s*;\s*$'
    for f in $(find -name '*.nix'); do
        grep -q "$pattern" "$f" || continue
        sed -i "/$pattern/d" "$f"
        if [ $(grep -c pythonOlder "$f") == 1 ]; then
            sed -i '/^\s*pythonOlder,\s*$/d' "$f"
        fi
        nixfmt "$f"
    done
2026-01-11 09:34:20 -08: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.0";
format = "setuptools";
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 ];
};
}