diff --git a/pkgs/development/libraries/grib-api/default.nix b/pkgs/development/libraries/grib-api/default.nix index ca2fb7282627..80e05b8d7434 100644 --- a/pkgs/development/libraries/grib-api/default.nix +++ b/pkgs/development/libraries/grib-api/default.nix @@ -25,6 +25,10 @@ stdenv.mkDerivation rec{ pythonPackages.python ]; + propagatedBuildInputs = stdenv.lib.optionals enablePython [ + pythonPackages.numpy + ]; + cmakeFlags = [ "-DENABLE_PYTHON=${if enablePython then "ON" else "OFF"}" "-DENABLE_PNG=ON" "-DENABLE_FORTRAN=ON" diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index e7305f9ec9ad..4ac05d47ee00 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -12176,6 +12176,14 @@ in { }; }; + grib-api = if (isPy27) then + (pkgs.grib-api.overrideAttrs (oldattrs: { + name = "${python.libPrefix}-" + oldattrs.name; + })).override { + enablePython = true; + pythonPackages = self; + } else throw "grib-api not supported for interpreter ${python.executable}"; + gspread = buildPythonPackage rec { version = "0.2.3"; name = "gspread-${version}";