Skip to content

Commit

Permalink
pythonPackages.wrf-python: Fix build (#56989)
Browse files Browse the repository at this point in the history
The latest changes to support better cross-compilation compatibility
have introduced a stricter handling of dependency specification in
python. Since b4acd97, 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.

(cherry picked from commit 36f5c0d)
  • Loading branch information
knedlsepp authored and Robert Schütz committed Mar 7, 2019
1 parent 4d566c3 commit 1a24f2c
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions pkgs/development/python-modules/wrf-python/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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 = ''
Expand Down

0 comments on commit 1a24f2c

Please sign in to comment.