Merge pull request #154716 from fabaff/fix-apscheduler

python310Packages.APScheduler: disable failing tests

authored by Fabian Affolter and committed by GitHub dfbf064a 3a062baf

+28 -26
+28 -26
pkgs/development/python-modules/APScheduler/default.nix
··· 2 2 , stdenv 3 3 , buildPythonPackage 4 4 , fetchPypi 5 - , setuptools-scm 6 - , pytestCheckHook 5 + , gevent 7 6 , pytest-asyncio 8 7 , pytest-tornado 9 - , sqlalchemy 8 + , pytestCheckHook 9 + , pythonOlder 10 + , pytz 11 + , setuptools 12 + , setuptools-scm 13 + , six 10 14 , tornado 11 15 , twisted 12 - , mock 13 - , gevent 14 - , six 15 - , pytz 16 16 , tzlocal 17 - , funcsigs 18 - , setuptools 19 - , pythonOlder 20 17 }: 21 18 22 19 buildPythonPackage rec { 23 - pname = "APScheduler"; 20 + pname = "apscheduler"; 24 21 version = "3.8.1"; 22 + format = "setuptools"; 25 23 26 24 disabled = pythonOlder "3.7"; 27 25 28 26 src = fetchPypi { 29 - inherit pname version; 30 - sha256 = "5cf344ebcfbdaa48ae178c029c055cec7bc7a4a47c21e315e4d1f08bd35f2355"; 27 + pname = "APScheduler"; 28 + inherit version; 29 + hash = "sha256-XPNE68+9qkiuF4wCnAVc7HvHpKR8IeMV5NHwi9NfI1U="; 31 30 }; 32 31 33 32 buildInputs = [ 34 33 setuptools-scm 35 34 ]; 36 35 36 + propagatedBuildInputs = [ 37 + pytz 38 + setuptools 39 + six 40 + tzlocal 41 + ]; 42 + 37 43 checkInputs = [ 44 + gevent 38 45 pytest-asyncio 39 46 pytest-tornado 40 47 pytestCheckHook 41 - sqlalchemy 42 48 tornado 43 49 twisted 44 - mock 45 - gevent 46 - ]; 47 - 48 - propagatedBuildInputs = [ 49 - six 50 - pytz 51 - tzlocal 52 - funcsigs 53 - setuptools 54 50 ]; 55 51 56 52 postPatch = '' ··· 60 56 61 57 disabledTests = [ 62 58 "test_broken_pool" 59 + # gevent tests have issue on newer Python releases 60 + "test_add_live_job" 61 + "test_add_pending_job" 62 + "test_shutdown" 63 63 ] ++ lib.optionals stdenv.isDarwin [ 64 64 "test_submit_job" 65 65 "test_max_instances" 66 66 ]; 67 67 68 - pythonImportsCheck = [ "apscheduler" ]; 68 + pythonImportsCheck = [ 69 + "apscheduler" 70 + ]; 69 71 70 72 meta = with lib; { 71 - description = "A Python library that lets you schedule your Python code to be executed"; 73 + description = "Library that lets you schedule your Python code to be executed"; 72 74 homepage = "https://github.com/agronholm/apscheduler"; 73 75 license = licenses.mit; 74 76 maintainers = with maintainers; [ ];