1{ 2 lib, 3 buildPythonPackage, 4 cython, 5 fetchPypi, 6 numpy, 7 pytestCheckHook, 8 pythonOlder, 9}: 10 11buildPythonPackage rec { 12 pname = "cftime"; 13 version = "1.6.3"; 14 format = "setuptools"; 15 16 disabled = pythonOlder "3.7"; 17 18 src = fetchPypi { 19 inherit pname version; 20 hash = "sha256-0Kayn3KhPwjgCLm+z/JHzHXISsshMzLt4Yh5xbaqTf0="; 21 }; 22 23 postPatch = '' 24 sed -i "/--cov/d" setup.cfg 25 ''; 26 27 nativeBuildInputs = [ 28 cython 29 numpy 30 ]; 31 32 propagatedBuildInputs = [ numpy ]; 33 34 nativeCheckInputs = [ pytestCheckHook ]; 35 36 pythonImportsCheck = [ "cftime" ]; 37 38 meta = with lib; { 39 description = "Time-handling functionality from netcdf4-python"; 40 homepage = "https://github.com/Unidata/cftime"; 41 license = licenses.mit; 42 maintainers = with maintainers; [ ]; 43 }; 44}