summary refs log tree commit diff
diff options
context:
space:
mode:
authormhaselsteiner <magdalena.haselsteiner@gmx.at>2018-10-16 23:02:57 +0200
committermhaselsteiner <magdalena.haselsteiner@gmx.at>2019-01-30 22:51:27 +0100
commit6dda7841bb9422ab989e8ca220ca70af840112f1 (patch)
treee5bc45110cce75de2b4e67ff5f7ce309e461aff3
parent18ad447b6fdfffaf461bc3a8192e71a0b839ef83 (diff)
downloadnixpkgs-6dda7841bb9422ab989e8ca220ca70af840112f1.tar
nixpkgs-6dda7841bb9422ab989e8ca220ca70af840112f1.tar.gz
nixpkgs-6dda7841bb9422ab989e8ca220ca70af840112f1.tar.bz2
nixpkgs-6dda7841bb9422ab989e8ca220ca70af840112f1.tar.lz
nixpkgs-6dda7841bb9422ab989e8ca220ca70af840112f1.tar.xz
nixpkgs-6dda7841bb9422ab989e8ca220ca70af840112f1.tar.zst
nixpkgs-6dda7841bb9422ab989e8ca220ca70af840112f1.zip
pythonPackages.wrf-python: init at 1.3.1.1
-rw-r--r--maintainers/maintainer-list.nix5
-rw-r--r--pkgs/development/python-modules/wrf-python/default.nix41
-rw-r--r--pkgs/top-level/python-packages.nix2
3 files changed, 48 insertions, 0 deletions
diff --git a/maintainers/maintainer-list.nix b/maintainers/maintainer-list.nix
index cf02bc64151..0eaf1b50435 100644
--- a/maintainers/maintainer-list.nix
+++ b/maintainers/maintainer-list.nix
@@ -2896,6 +2896,11 @@
     github = "mguentner";
     name = "Maximilian Güntner";
   };
+   mhaselsteiner = {
+    email = "magdalena.haselsteiner@gmx.at";
+    github = "mhaselsteiner";
+    name = "Magdalena Haselsteiner";
+  };
   mic92 = {
     email = "joerg@thalheim.io";
     github = "mic92";
diff --git a/pkgs/development/python-modules/wrf-python/default.nix b/pkgs/development/python-modules/wrf-python/default.nix
new file mode 100644
index 00000000000..8e9358dd473
--- /dev/null
+++ b/pkgs/development/python-modules/wrf-python/default.nix
@@ -0,0 +1,41 @@
+{lib, fetchFromGitHub, python, pythonOlder, buildPythonPackage, gfortran, mock, xarray, wrapt, numpy, netcdf4}:
+
+buildPythonPackage rec {
+  pname = "wrf-python";
+  version = "1.3.1.1";
+
+  src = fetchFromGitHub {
+    owner = "NCAR";
+    repo = "wrf-python";
+    rev = version;
+    sha256 = "12mm7x1r5md6x28vmwyh6k655pgsv6knj8ycmjbxxk8bk7qsj74h";
+  };
+
+  propagatedBuildInputs = [
+    wrapt
+    numpy
+    xarray
+  ];
+  buildInputs = [
+    gfortran
+  ] ++ lib.optional (pythonOlder "3.3") mock;
+  
+  checkInputs = [
+    netcdf4
+  ];
+
+  doCheck = true;
+  checkPhase = ''
+    runHook preCheck
+    cd ./test/ci_tests
+    python utests.py
+    runHook postCheck
+  '';
+
+  meta = {
+    description = "WRF postprocessing library for Python";
+    homepage = http://wrf-python.rtfd.org;
+    license = lib.licenses.asl20;
+    maintainers = with lib.maintainers; [ mhaselsteiner ];
+	};
+}
\ No newline at end of file
diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix
index 8fbddff342a..8f45e0453fc 100644
--- a/pkgs/top-level/python-packages.nix
+++ b/pkgs/top-level/python-packages.nix
@@ -810,6 +810,8 @@ in {
 
   webapp2 = callPackage ../development/python-modules/webapp2 { };
 
+  wrf-python = callPackage ../development/python-modules/wrf-python { };
+
   pyunbound = callPackage ../tools/networking/unbound/python.nix { };
 
   WazeRouteCalculator = callPackage ../development/python-modules/WazeRouteCalculator { };