2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
stdenv,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchPypi,
|
|
|
|
gevent,
|
|
|
|
pytest-asyncio,
|
|
|
|
pytest-tornado,
|
|
|
|
pytestCheckHook,
|
|
|
|
pythonOlder,
|
|
|
|
pytz,
|
|
|
|
setuptools,
|
|
|
|
setuptools-scm,
|
|
|
|
six,
|
|
|
|
tornado,
|
|
|
|
twisted,
|
|
|
|
tzlocal,
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2022-01-13 20:06:32 +00:00
|
|
|
pname = "apscheduler";
|
2023-10-09 19:29:22 +00:00
|
|
|
version = "3.10.4";
|
2024-05-15 15:35:15 +00:00
|
|
|
pyproject = true;
|
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;
|
2023-10-09 19:29:22 +00:00
|
|
|
hash = "sha256-5t8HGyfZvomOSGvHlAp75QtK8unafAjwdEqW1L1M70o=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2024-05-15 15:35:15 +00:00
|
|
|
build-system = [
|
|
|
|
setuptools
|
2021-03-12 07:09:13 +00:00
|
|
|
setuptools-scm
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
2024-05-15 15:35:15 +00:00
|
|
|
dependencies = [
|
2022-01-13 20:06:32 +00:00
|
|
|
pytz
|
|
|
|
setuptools
|
|
|
|
six
|
|
|
|
tzlocal
|
|
|
|
];
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
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 \
|
2024-05-15 15:35:15 +00:00
|
|
|
--replace-fail " --cov --tb=short" ""
|
2021-09-26 12:46:18 +00:00
|
|
|
'';
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
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"
|
|
|
|
];
|
2021-03-19 17:17:44 +00:00
|
|
|
|
2024-06-05 15:53:02 +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
|
|
|
};
|
|
|
|
}
|