Merge pull request #25990 from knedlsepp/provide-grib-api-python-bindings

grib-api: Provide python bindings
This commit is contained in:
Frederik Rietdijk 2017-06-07 13:07:36 +02:00 committed by GitHub
commit 90d5dd3cda
2 changed files with 12 additions and 0 deletions

View File

@ -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"

View File

@ -11833,6 +11833,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}";