mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-28 01:43:15 +00:00
Merge pull request #25990 from knedlsepp/provide-grib-api-python-bindings
grib-api: Provide python bindings
This commit is contained in:
commit
90d5dd3cda
@ -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"
|
||||
|
@ -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}";
|
||||
|
Loading…
Reference in New Issue
Block a user