31 lines
514 B
Nix
31 lines
514 B
Nix
{ buildPythonPackage
|
|
, fetchPypi
|
|
, pytest
|
|
, coveralls
|
|
, pytestcov
|
|
, cython
|
|
, numpy
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "cftime";
|
|
version = "1.1.2";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "17w9myl8mg4isv4lb1nv64zim53ishi32f6m5m0s00q9a6v5qfb0";
|
|
};
|
|
|
|
checkInputs = [ pytest coveralls pytestcov ];
|
|
buildInputs = [ cython ];
|
|
propagatedBuildInputs = [ numpy ];
|
|
|
|
checkPhase = ''
|
|
py.test
|
|
'';
|
|
|
|
meta = {
|
|
description = "Time-handling functionality from netcdf4-python";
|
|
};
|
|
|
|
} |