2018-07-21 02:44:44 +02:00
|
|
|
{ buildPythonPackage
|
2018-06-22 12:22:42 +02:00
|
|
|
, fetchPypi
|
|
|
|
, pytest
|
|
|
|
, coveralls
|
|
|
|
, pytestcov
|
|
|
|
, cython
|
|
|
|
, numpy
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "cftime";
|
2018-12-15 13:13:00 +01:00
|
|
|
version = "1.0.3.4";
|
2018-06-22 12:22:42 +02:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2018-12-15 13:13:00 +01:00
|
|
|
sha256 = "0362dhxbzk593walyjz30dll6y2y79wialik647cbwdsf3ad0x6x";
|
2018-06-22 12:22:42 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
checkInputs = [ pytest coveralls pytestcov ];
|
|
|
|
buildInputs = [ cython ];
|
|
|
|
propagatedBuildInputs = [ numpy ];
|
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
py.test
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Time-handling functionality from netcdf4-python";
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|