2020-04-24 23:36:52 +00:00
|
|
|
{ lib
|
2021-03-19 17:17:44 +00:00
|
|
|
, stdenv
|
2020-04-24 23:36:52 +00:00
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
2022-01-13 20:06:32 +00:00
|
|
|
, gevent
|
2021-03-19 17:17:44 +00:00
|
|
|
, pytest-asyncio
|
|
|
|
, pytest-tornado
|
2022-01-13 20:06:32 +00:00
|
|
|
, pytestCheckHook
|
|
|
|
, pythonOlder
|
|
|
|
, pytz
|
|
|
|
, setuptools
|
|
|
|
, setuptools-scm
|
|
|
|
, six
|
2020-04-24 23:36:52 +00:00
|
|
|
, tornado
|
|
|
|
, twisted
|
|
|
|
, tzlocal
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2022-01-13 20:06:32 +00:00
|
|
|
pname = "apscheduler";
|
2021-10-28 06:52:43 +00:00
|
|
|
version = "3.8.1";
|
2022-01-13 20:06:32 +00:00
|
|
|
format = "setuptools";
|
2021-09-26 12:46:18 +00:00
|
|
|
|
2021-03-23 19:22:30 +00:00
|
|
|
disabled = pythonOlder "3.7";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
2022-01-13 20:06:32 +00:00
|
|
|
pname = "APScheduler";
|
|
|
|
inherit version;
|
|
|
|
hash = "sha256-XPNE68+9qkiuF4wCnAVc7HvHpKR8IeMV5NHwi9NfI1U=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [
|
2021-03-12 07:09:13 +00:00
|
|
|
setuptools-scm
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
2022-01-13 20:06:32 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
pytz
|
|
|
|
setuptools
|
|
|
|
six
|
|
|
|
tzlocal
|
|
|
|
];
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
checkInputs = [
|
2022-01-13 20:06:32 +00:00
|
|
|
gevent
|
2021-03-19 17:17:44 +00:00
|
|
|
pytest-asyncio
|
|
|
|
pytest-tornado
|
2021-03-12 07:09:13 +00:00
|
|
|
pytestCheckHook
|
2020-04-24 23:36:52 +00:00
|
|
|
tornado
|
|
|
|
twisted
|
2021-03-23 19:22:30 +00:00
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-09-26 12:46:18 +00:00
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace setup.cfg \
|
|
|
|
--replace " --cov --tb=short" ""
|
|
|
|
'';
|
|
|
|
|
|
|
|
disabledTests = [
|
|
|
|
"test_broken_pool"
|
2022-01-13 20:06:32 +00:00
|
|
|
# gevent tests have issue on newer Python releases
|
|
|
|
"test_add_live_job"
|
|
|
|
"test_add_pending_job"
|
|
|
|
"test_shutdown"
|
2021-09-26 12:46:18 +00:00
|
|
|
] ++ lib.optionals stdenv.isDarwin [
|
2021-03-19 17:17:44 +00:00
|
|
|
"test_submit_job"
|
|
|
|
"test_max_instances"
|
|
|
|
];
|
|
|
|
|
2022-01-13 20:06:32 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"apscheduler"
|
|
|
|
];
|
2021-03-09 03:18:52 +00:00
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
meta = with lib; {
|
2022-01-13 20:06:32 +00:00
|
|
|
description = "Library that lets you schedule your Python code to be executed";
|
2021-03-12 07:09:13 +00:00
|
|
|
homepage = "https://github.com/agronholm/apscheduler";
|
2020-04-24 23:36:52 +00:00
|
|
|
license = licenses.mit;
|
2021-09-26 12:46:18 +00:00
|
|
|
maintainers = with maintainers; [ ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|