about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/python-modules/cftime/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'nixpkgs/pkgs/development/python-modules/cftime/default.nix')
-rw-r--r--nixpkgs/pkgs/development/python-modules/cftime/default.nix31
1 files changed, 31 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/development/python-modules/cftime/default.nix b/nixpkgs/pkgs/development/python-modules/cftime/default.nix
new file mode 100644
index 000000000000..d4f59d417714
--- /dev/null
+++ b/nixpkgs/pkgs/development/python-modules/cftime/default.nix
@@ -0,0 +1,31 @@
+{ buildPythonPackage
+, fetchPypi
+, pytest
+, coveralls
+, pytestcov
+, cython
+, numpy
+}:
+
+buildPythonPackage rec {
+  pname = "cftime";
+  version = "1.0.3.4";
+
+  src = fetchPypi {
+    inherit pname version;
+    sha256 = "0362dhxbzk593walyjz30dll6y2y79wialik647cbwdsf3ad0x6x";
+  };
+
+  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