Merge pull request #154716 from fabaff/fix-apscheduler
python310Packages.APScheduler: disable failing tests
This commit is contained in:
commit
dfbf064a13
1 changed files with 28 additions and 26 deletions
|
@ -2,55 +2,51 @@
|
||||||
, stdenv
|
, stdenv
|
||||||
, buildPythonPackage
|
, buildPythonPackage
|
||||||
, fetchPypi
|
, fetchPypi
|
||||||
, setuptools-scm
|
, gevent
|
||||||
, pytestCheckHook
|
|
||||||
, pytest-asyncio
|
, pytest-asyncio
|
||||||
, pytest-tornado
|
, pytest-tornado
|
||||||
, sqlalchemy
|
, pytestCheckHook
|
||||||
|
, pythonOlder
|
||||||
|
, pytz
|
||||||
|
, setuptools
|
||||||
|
, setuptools-scm
|
||||||
|
, six
|
||||||
, tornado
|
, tornado
|
||||||
, twisted
|
, twisted
|
||||||
, mock
|
|
||||||
, gevent
|
|
||||||
, six
|
|
||||||
, pytz
|
|
||||||
, tzlocal
|
, tzlocal
|
||||||
, funcsigs
|
|
||||||
, setuptools
|
|
||||||
, pythonOlder
|
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "APScheduler";
|
pname = "apscheduler";
|
||||||
version = "3.8.1";
|
version = "3.8.1";
|
||||||
|
format = "setuptools";
|
||||||
|
|
||||||
disabled = pythonOlder "3.7";
|
disabled = pythonOlder "3.7";
|
||||||
|
|
||||||
src = fetchPypi {
|
src = fetchPypi {
|
||||||
inherit pname version;
|
pname = "APScheduler";
|
||||||
sha256 = "5cf344ebcfbdaa48ae178c029c055cec7bc7a4a47c21e315e4d1f08bd35f2355";
|
inherit version;
|
||||||
|
hash = "sha256-XPNE68+9qkiuF4wCnAVc7HvHpKR8IeMV5NHwi9NfI1U=";
|
||||||
};
|
};
|
||||||
|
|
||||||
buildInputs = [
|
buildInputs = [
|
||||||
setuptools-scm
|
setuptools-scm
|
||||||
];
|
];
|
||||||
|
|
||||||
|
propagatedBuildInputs = [
|
||||||
|
pytz
|
||||||
|
setuptools
|
||||||
|
six
|
||||||
|
tzlocal
|
||||||
|
];
|
||||||
|
|
||||||
checkInputs = [
|
checkInputs = [
|
||||||
|
gevent
|
||||||
pytest-asyncio
|
pytest-asyncio
|
||||||
pytest-tornado
|
pytest-tornado
|
||||||
pytestCheckHook
|
pytestCheckHook
|
||||||
sqlalchemy
|
|
||||||
tornado
|
tornado
|
||||||
twisted
|
twisted
|
||||||
mock
|
|
||||||
gevent
|
|
||||||
];
|
|
||||||
|
|
||||||
propagatedBuildInputs = [
|
|
||||||
six
|
|
||||||
pytz
|
|
||||||
tzlocal
|
|
||||||
funcsigs
|
|
||||||
setuptools
|
|
||||||
];
|
];
|
||||||
|
|
||||||
postPatch = ''
|
postPatch = ''
|
||||||
|
@ -60,15 +56,21 @@ buildPythonPackage rec {
|
||||||
|
|
||||||
disabledTests = [
|
disabledTests = [
|
||||||
"test_broken_pool"
|
"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 [
|
] ++ lib.optionals stdenv.isDarwin [
|
||||||
"test_submit_job"
|
"test_submit_job"
|
||||||
"test_max_instances"
|
"test_max_instances"
|
||||||
];
|
];
|
||||||
|
|
||||||
pythonImportsCheck = [ "apscheduler" ];
|
pythonImportsCheck = [
|
||||||
|
"apscheduler"
|
||||||
|
];
|
||||||
|
|
||||||
meta = with lib; {
|
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";
|
homepage = "https://github.com/agronholm/apscheduler";
|
||||||
license = licenses.mit;
|
license = licenses.mit;
|
||||||
maintainers = with maintainers; [ ];
|
maintainers = with maintainers; [ ];
|
||||||
|
|
Loading…
Reference in a new issue