2018-07-21 01:44:44 +01:00
|
|
|
{ buildPythonPackage
|
2018-06-22 11:22:42 +01:00
|
|
|
, fetchPypi
|
|
|
|
, pytest
|
|
|
|
, coveralls
|
|
|
|
, pytestcov
|
|
|
|
, cython
|
|
|
|
, numpy
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "cftime";
|
2018-08-25 06:43:33 +01:00
|
|
|
version = "1.0.1";
|
2018-06-22 11:22:42 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2018-08-25 06:43:33 +01:00
|
|
|
sha256 = "20556931f546838d09be5d589482dfae6164e0d403f0aab2163c006b680d3b92";
|
2018-06-22 11:22:42 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
checkInputs = [ pytest coveralls pytestcov ];
|
|
|
|
buildInputs = [ cython ];
|
|
|
|
propagatedBuildInputs = [ numpy ];
|
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
py.test
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Time-handling functionality from netcdf4-python";
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|