nixpkgs/pkgs/development/python-modules/cftime/default.nix

32 lines
527 B
Nix
Raw Normal View History

{ buildPythonPackage
2018-06-22 11:22:42 +01:00
, fetchPypi
, pytest
, coveralls
, pytestcov
, cython
, numpy
}:
buildPythonPackage rec {
pname = "cftime";
2020-08-16 18:30:55 +01:00
version = "1.2.1";
2018-06-22 11:22:42 +01:00
src = fetchPypi {
inherit pname version;
2020-08-16 18:30:55 +01:00
sha256 = "ab5d5076f7d3e699758a244ada7c66da96bae36e22b9e351ce0ececc36f0a57f";
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";
};
2020-08-25 03:07:09 +01:00
}