2018-07-20 17:44:44 -07:00
|
|
|
{ buildPythonPackage
|
2018-06-22 03:22:42 -07:00
|
|
|
, fetchPypi
|
|
|
|
, pytest
|
|
|
|
, coveralls
|
|
|
|
, pytestcov
|
|
|
|
, cython
|
|
|
|
, numpy
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "cftime";
|
2018-11-08 22:32:41 -08:00
|
|
|
version = "1.0.2.1";
|
2018-06-22 03:22:42 -07:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2018-11-08 22:32:41 -08:00
|
|
|
sha256 = "1fxpvy3z0b3ga8ylr54ml7nxsfah2bh5azk43nb565rcka3x909c";
|
2018-06-22 03:22:42 -07:00
|
|
|
};
|
|
|
|
|
|
|
|
checkInputs = [ pytest coveralls pytestcov ];
|
|
|
|
buildInputs = [ cython ];
|
|
|
|
propagatedBuildInputs = [ numpy ];
|
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
py.test
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Time-handling functionality from netcdf4-python";
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|