1
0
Fork 0
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-06-20 00:19:25 +03:00
nixpkgs/pkgs/development/python-modules/cftime/default.nix

50 lines
795 B
Nix
Raw Normal View History

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