python3Packages.cftime: enable tests

This commit is contained in:
Fabian Affolter 2022-01-25 14:41:30 +01:00 committed by GitHub
parent 9b9954fccc
commit 01fd90232d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,27 +1,24 @@
{ buildPythonPackage
, fetchPypi
, pytestCheckHook
, coveralls
, pytest-cov
{ lib
, buildPythonPackage
, cython
, fetchPypi
, numpy
, pytestCheckHook
, pythonOlder
}:
buildPythonPackage rec {
pname = "cftime";
version = "1.5.2";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
sha256 = "375d37d9ab8bf501c048e44efce2276296e3d67bb276e891e0e93b0a8bbb988a";
};
checkInputs = [
pytestCheckHook
coveralls
pytest-cov
];
nativeBuildInputs = [
cython
numpy
@ -31,11 +28,22 @@ buildPythonPackage rec {
numpy
];
# ERROR test/test_cftime.py - ModuleNotFoundError: No module named 'cftime._cft...
doCheck = false;
checkInputs = [
pytestCheckHook
];
meta = {
postPatch = ''
sed -i "/--cov/d" setup.cfg
'';
pythonImportsCheck = [
"cftime"
];
meta = with lib; {
description = "Time-handling functionality from netcdf4-python";
homepage = "https://github.com/Unidata/cftime";
license = licenses.mit;
maintainers = with maintainers; [ ];
};
}