pythonPackages.APScheduler: run tests again

This commit is contained in:
Sandro Jäckel 2021-03-07 00:36:39 +01:00
parent e918d6711c
commit 50b18cd9b1
No known key found for this signature in database
GPG key ID: 3AF5A43A3EECC2E5

View file

@ -1,8 +1,8 @@
{ lib { lib
, buildPythonPackage , buildPythonPackage
, fetchPypi , fetchPypi
, setuptools_scm , setuptools-scm
, pytest , pytestCheckHook
, pytestcov , pytestcov
, sqlalchemy , sqlalchemy
, tornado , tornado
@ -29,11 +29,11 @@ buildPythonPackage rec {
}; };
buildInputs = [ buildInputs = [
setuptools_scm setuptools-scm
]; ];
checkInputs = [ checkInputs = [
pytest pytestCheckHook
pytestcov pytestcov
sqlalchemy sqlalchemy
tornado tornado
@ -51,18 +51,11 @@ buildPythonPackage rec {
setuptools setuptools
] ++ lib.optional (!isPy3k) futures; ] ++ lib.optional (!isPy3k) futures;
checkPhase = ''
py.test
'';
pythonImportsCheck = [ "apscheduler" ]; pythonImportsCheck = [ "apscheduler" ];
# Somehow it cannot find pytestcov
doCheck = false;
meta = with lib; { meta = with lib; {
description = "A Python library that lets you schedule your Python code to be executed"; description = "A Python library that lets you schedule your Python code to be executed";
homepage = "https://pypi.python.org/pypi/APScheduler/"; homepage = "https://github.com/agronholm/apscheduler";
license = licenses.mit; license = licenses.mit;
}; };
} }