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.
This commit is contained in:
parent
645ac131dd
commit
36f5c0d58d
@ -16,13 +16,14 @@ buildPythonPackage rec {
|
|||||||
numpy
|
numpy
|
||||||
xarray
|
xarray
|
||||||
];
|
];
|
||||||
buildInputs = [
|
|
||||||
|
nativeBuildInputs = [
|
||||||
gfortran
|
gfortran
|
||||||
] ++ lib.optional (pythonOlder "3.3") mock;
|
];
|
||||||
|
|
||||||
checkInputs = [
|
checkInputs = [
|
||||||
netcdf4
|
netcdf4
|
||||||
];
|
] ++ lib.optional (pythonOlder "3.3") mock;
|
||||||
|
|
||||||
doCheck = true;
|
doCheck = true;
|
||||||
checkPhase = ''
|
checkPhase = ''
|
||||||
|
Loading…
x
Reference in New Issue
Block a user