summary refs log tree commit diff
diff options
context:
space:
mode:
authorJosef Kemetmueller <josef.kemetmueller@zamg.ac.at>2017-05-22 13:51:48 +0000
committerJosef Kemetmueller <josef.kemetmueller@zamg.ac.at>2017-05-22 14:43:50 +0000
commitabdaf5a29077ce822ef945966495c18e25dc733b (patch)
tree4639cfc0d1d3590a95356ca88709b9f56747f1c4
parent3b44cd731c81420810659cc3b254389562cbe505 (diff)
downloadnixlib-abdaf5a29077ce822ef945966495c18e25dc733b.tar
nixlib-abdaf5a29077ce822ef945966495c18e25dc733b.tar.gz
nixlib-abdaf5a29077ce822ef945966495c18e25dc733b.tar.bz2
nixlib-abdaf5a29077ce822ef945966495c18e25dc733b.tar.lz
nixlib-abdaf5a29077ce822ef945966495c18e25dc733b.tar.xz
nixlib-abdaf5a29077ce822ef945966495c18e25dc733b.tar.zst
nixlib-abdaf5a29077ce822ef945966495c18e25dc733b.zip
eccodes: Provide python bindings
-rw-r--r--pkgs/top-level/python-packages.nix8
1 files changed, 8 insertions, 0 deletions
diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix
index e7305f9ec9ad..776d49881945 100644
--- a/pkgs/top-level/python-packages.nix
+++ b/pkgs/top-level/python-packages.nix
@@ -6379,6 +6379,14 @@ in {
     };
   };
 
+  eccodes = if (isPy27) then
+      (pkgs.eccodes.overrideAttrs (oldattrs: {
+    name = "${python.libPrefix}-" + oldattrs.name;
+  })).override {
+    enablePython = true;
+    pythonPackages = self;
+  } else throw "eccodes not supported for interpreter ${python.executable}";
+
   EditorConfig = buildPythonPackage rec {
     name = "EditorConfig-${version}";
     version = "0.12.0";