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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

50 lines
795 B
Nix
Raw Normal View History

2022-01-25 13:41:30 +00:00
{ lib
, buildPythonPackage
2018-06-22 10:22:42 +00:00
, cython
2022-01-25 13:41:30 +00:00
, fetchPypi
2018-06-22 10:22:42 +00:00
, numpy
2022-01-25 13:41:30 +00:00
, pytestCheckHook
, pythonOlder
2018-06-22 10:22:42 +00:00
}:
buildPythonPackage rec {
pname = "cftime";
version = "1.6.1";
2022-01-25 13:41:30 +00:00
format = "setuptools";
disabled = pythonOlder "3.7";
2018-06-22 10:22:42 +00:00
src = fetchPypi {
inherit pname version;
sha256 = "sha256-URIV9F7XzHnq2EAg6I4fxHa4q6cbR9L83vjmUkJAaSc=";
2018-06-22 10:22:42 +00:00
};
2020-11-19 20:40:32 +00:00
nativeBuildInputs = [
cython
numpy
];
propagatedBuildInputs = [
numpy
];
2022-01-25 13:41:30 +00:00
checkInputs = [
pytestCheckHook
];
postPatch = ''
sed -i "/--cov/d" setup.cfg
'';
pythonImportsCheck = [
"cftime"
];
2018-06-22 10:22:42 +00:00
2022-01-25 13:41:30 +00:00
meta = with lib; {
2018-06-22 10:22:42 +00:00
description = "Time-handling functionality from netcdf4-python";
2022-01-25 13:41:30 +00:00
homepage = "https://github.com/Unidata/cftime";
license = licenses.mit;
maintainers = with maintainers; [ ];
2018-06-22 10:22:42 +00:00
};
2020-08-25 02:07:09 +00:00
}