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";
|
2020-05-23 07:07:47 +01:00
|
|
|
version = "1.1.3";
|
2018-06-22 11:22:42 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-05-23 07:07:47 +01:00
|
|
|
sha256 = "1w2iakkzxfhyrqrspn40am8x7bzdp5qqdqbm1asbj7fa3mivi17x";
|
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";
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|