2018-07-21 00:44:44 +00:00
|
|
|
{ buildPythonPackage
|
2018-06-22 10:22:42 +00:00
|
|
|
, fetchPypi
|
|
|
|
, pytest
|
|
|
|
, coveralls
|
|
|
|
, pytestcov
|
|
|
|
, cython
|
|
|
|
, numpy
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "cftime";
|
2019-10-24 06:47:27 +00:00
|
|
|
version = "1.0.4.2";
|
2018-06-22 10:22:42 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2019-10-24 06:47:27 +00:00
|
|
|
sha256 = "1ac64f8f9066ea756ea27d67cedaf064e7c866275218fa7c84684066a5890f70";
|
2018-06-22 10:22:42 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
checkInputs = [ pytest coveralls pytestcov ];
|
|
|
|
buildInputs = [ cython ];
|
|
|
|
propagatedBuildInputs = [ numpy ];
|
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
py.test
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Time-handling functionality from netcdf4-python";
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|