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