summary refs log tree commit diff
path: root/pkgs/development/python-modules/cftime
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/development/python-modules/cftime')
-rw-r--r--pkgs/development/python-modules/cftime/default.nix32
1 files changed, 32 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/cftime/default.nix b/pkgs/development/python-modules/cftime/default.nix
new file mode 100644
index 000000000000..0e355723604e
--- /dev/null
+++ b/pkgs/development/python-modules/cftime/default.nix
@@ -0,0 +1,32 @@
+{ lib
+, buildPythonPackage
+, fetchPypi
+, pytest
+, coveralls
+, pytestcov
+, cython
+, numpy
+}:
+
+buildPythonPackage rec {
+  pname = "cftime";
+  version = "1.0.0";
+
+  src = fetchPypi {
+    inherit pname version;
+    sha256 = "f62fe79ed2ad38f4211477e59f6f045c91278351f4ce7578e33ddf52fb121ea8";
+  };
+
+  checkInputs = [ pytest coveralls pytestcov ];
+  buildInputs = [ cython ];
+  propagatedBuildInputs = [ numpy ];
+
+  checkPhase = ''
+    py.test
+  '';
+
+  meta = {
+    description = "Time-handling functionality from netcdf4-python";
+  };
+
+}
\ No newline at end of file