diff options
author | Josef Kemetmüller <josef.kemetmueller@aon.at> | 2019-03-07 13:21:04 +0100 |
---|---|---|
committer | Robert Schütz <rschuetz17@gmail.com> | 2019-03-07 13:21:04 +0100 |
commit | 36f5c0d58d935cf8b7cd00dd176f7cbc0a8b541b (patch) | |
tree | ef7dc20a01b7fe733100b1ebb372ef884a44a594 /pkgs/development/python-modules/wrf-python | |
parent | 645ac131dd363cb666e31ff322b2f918ffde481d (diff) |
pythonPackages.wrf-python: Fix build (#56989)
The latest changes to support better cross-compilation compatibility have introduced a stricter handling of dependency specification in python. Since b4acd977, gfortran should be put into nativeBuildInputs, as it's a build-time only dependency for wrf-python. Similarly, mock is only required when testing, so it should go to checkInputs.
Diffstat (limited to 'pkgs/development/python-modules/wrf-python')
-rw-r--r-- | pkgs/development/python-modules/wrf-python/default.nix | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/pkgs/development/python-modules/wrf-python/default.nix b/pkgs/development/python-modules/wrf-python/default.nix index 8e9358dd473a4..3adbaa942dd5e 100644 --- a/pkgs/development/python-modules/wrf-python/default.nix +++ b/pkgs/development/python-modules/wrf-python/default.nix @@ -16,13 +16,14 @@ buildPythonPackage rec { numpy xarray ]; - buildInputs = [ + + nativeBuildInputs = [ gfortran - ] ++ lib.optional (pythonOlder "3.3") mock; - + ]; + checkInputs = [ netcdf4 - ]; + ] ++ lib.optional (pythonOlder "3.3") mock; doCheck = true; checkPhase = '' |