Merge pull request #154716 from fabaff/fix-apscheduler

python310Packages.APScheduler: disable failing tests
This commit is contained in:
Fabian Affolter 2022-01-12 11:10:30 +01:00 committed by GitHub
commit dfbf064a13
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -2,55 +2,51 @@
, stdenv
, buildPythonPackage
, fetchPypi
, setuptools-scm
, pytestCheckHook
, gevent
, pytest-asyncio
, pytest-tornado
, sqlalchemy
, pytestCheckHook
, pythonOlder
, pytz
, setuptools
, setuptools-scm
, six
, tornado
, twisted
, mock
, gevent
, six
, pytz
, tzlocal
, funcsigs
, setuptools
, pythonOlder
}:
buildPythonPackage rec {
pname = "APScheduler";
pname = "apscheduler";
version = "3.8.1";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
sha256 = "5cf344ebcfbdaa48ae178c029c055cec7bc7a4a47c21e315e4d1f08bd35f2355";
pname = "APScheduler";
inherit version;
hash = "sha256-XPNE68+9qkiuF4wCnAVc7HvHpKR8IeMV5NHwi9NfI1U=";
};
buildInputs = [
setuptools-scm
];
propagatedBuildInputs = [
pytz
setuptools
six
tzlocal
];
checkInputs = [
gevent
pytest-asyncio
pytest-tornado
pytestCheckHook
sqlalchemy
tornado
twisted
mock
gevent
];
propagatedBuildInputs = [
six
pytz
tzlocal
funcsigs
setuptools
];
postPatch = ''
@ -60,15 +56,21 @@ buildPythonPackage rec {
disabledTests = [
"test_broken_pool"
# gevent tests have issue on newer Python releases
"test_add_live_job"
"test_add_pending_job"
"test_shutdown"
] ++ lib.optionals stdenv.isDarwin [
"test_submit_job"
"test_max_instances"
];
pythonImportsCheck = [ "apscheduler" ];
pythonImportsCheck = [
"apscheduler"
];
meta = with lib; {
description = "A Python library that lets you schedule your Python code to be executed";
description = "Library that lets you schedule your Python code to be executed";
homepage = "https://github.com/agronholm/apscheduler";
license = licenses.mit;
maintainers = with maintainers; [ ];