python3Packages.cftime: enable tests
This commit is contained in:
parent
9b9954fccc
commit
01fd90232d
1 changed files with 23 additions and 15 deletions
|
@ -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; [ ];
|
||||
};
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue