mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-05 05:13:04 +00:00
32 lines
532 B
Nix
32 lines
532 B
Nix
|
{ lib
|
||
|
, buildPythonPackage
|
||
|
, fetchPypi
|
||
|
, pytest
|
||
|
, coveralls
|
||
|
, pytestcov
|
||
|
, cython
|
||
|
, numpy
|
||
|
}:
|
||
|
|
||
|
buildPythonPackage rec {
|
||
|
pname = "cftime";
|
||
|
version = "1.0.0";
|
||
|
|
||
|
src = fetchPypi {
|
||
|
inherit pname version;
|
||
|
sha256 = "f62fe79ed2ad38f4211477e59f6f045c91278351f4ce7578e33ddf52fb121ea8";
|
||
|
};
|
||
|
|
||
|
checkInputs = [ pytest coveralls pytestcov ];
|
||
|
buildInputs = [ cython ];
|
||
|
propagatedBuildInputs = [ numpy ];
|
||
|
|
||
|
checkPhase = ''
|
||
|
py.test
|
||
|
'';
|
||
|
|
||
|
meta = {
|
||
|
description = "Time-handling functionality from netcdf4-python";
|
||
|
};
|
||
|
|
||
|
}
|