python.pkgs.cftime: init at 1.0.0

This commit is contained in:
Frederik Rietdijk 2018-06-22 12:22:42 +02:00
parent 5b49e13f02
commit 25e5b37c23
2 changed files with 34 additions and 0 deletions

View File

@ -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";
};
}

View File

@ -1566,6 +1566,8 @@ in {
cherrypy = callPackage ../development/python-modules/cherrypy {};
cftime = callPackage ../development/python-modules/cftime {};
cjson = callPackage ../development/python-modules/cjson { };
cld2-cffi = callPackage ../development/python-modules/cld2-cffi {};