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";
|
2023-10-09 19:29:22 +00:00
|
|
|
version = "3.10.4";
|
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;
|
2023-10-09 19:29:22 +00:00
|
|
|
hash = "sha256-5t8HGyfZvomOSGvHlAp75QtK8unafAjwdEqW1L1M70o=";
|
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
|
|
|
|
];
|
|
|
|
|
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 \
|
|
|
|
--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
|
|
|
};
|
|
|
|
}
|