2017-05-01 08:52:32 +01:00
|
|
|
{ lib
|
2021-03-14 04:20:00 +00:00
|
|
|
, stdenv
|
2017-05-01 08:52:32 +01:00
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
2022-01-12 08:39:34 +00:00
|
|
|
, gevent
|
2021-03-14 04:20:00 +00:00
|
|
|
, pytest-asyncio
|
|
|
|
, pytest-tornado
|
2022-01-12 08:39:34 +00:00
|
|
|
, pytestCheckHook
|
|
|
|
, pythonOlder
|
|
|
|
, pytz
|
|
|
|
, setuptools
|
|
|
|
, setuptools-scm
|
|
|
|
, six
|
2017-05-01 08:52:32 +01:00
|
|
|
, tornado
|
|
|
|
, twisted
|
|
|
|
, tzlocal
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2022-01-12 08:39:34 +00:00
|
|
|
pname = "apscheduler";
|
2022-03-04 16:10:04 +00:00
|
|
|
version = "3.9.1";
|
2022-01-12 08:39:34 +00:00
|
|
|
format = "setuptools";
|
2021-09-24 13:03:54 +01:00
|
|
|
|
2021-03-20 15:19:01 +00:00
|
|
|
disabled = pythonOlder "3.7";
|
2017-05-01 08:52:32 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
2022-01-12 08:39:34 +00:00
|
|
|
pname = "APScheduler";
|
|
|
|
inherit version;
|
2022-03-04 16:10:04 +00:00
|
|
|
hash = "sha256-ZeZXS2OVSY03HQRfKop+T31Qxq0h73MT0VscfPIN8eM=";
|
2017-05-01 08:52:32 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [
|
2021-03-06 23:36:39 +00:00
|
|
|
setuptools-scm
|
2017-05-01 08:52:32 +01:00
|
|
|
];
|
|
|
|
|
2022-01-12 08:39:34 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
pytz
|
|
|
|
setuptools
|
|
|
|
six
|
|
|
|
tzlocal
|
|
|
|
];
|
|
|
|
|
2017-05-01 08:52:32 +01:00
|
|
|
checkInputs = [
|
2022-01-12 08:39:34 +00:00
|
|
|
gevent
|
2021-03-14 04:20:00 +00:00
|
|
|
pytest-asyncio
|
|
|
|
pytest-tornado
|
2021-03-06 23:36:39 +00:00
|
|
|
pytestCheckHook
|
2017-05-01 08:52:32 +01:00
|
|
|
tornado
|
|
|
|
twisted
|
2021-03-20 15:19:01 +00:00
|
|
|
];
|
2017-05-01 08:52:32 +01:00
|
|
|
|
2021-09-24 13:03:54 +01:00
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace setup.cfg \
|
|
|
|
--replace " --cov --tb=short" ""
|
|
|
|
'';
|
|
|
|
|
|
|
|
disabledTests = [
|
|
|
|
"test_broken_pool"
|
2022-01-12 08:39:34 +00:00
|
|
|
# gevent tests have issue on newer Python releases
|
|
|
|
"test_add_live_job"
|
|
|
|
"test_add_pending_job"
|
|
|
|
"test_shutdown"
|
2021-09-24 13:03:54 +01:00
|
|
|
] ++ lib.optionals stdenv.isDarwin [
|
2021-03-14 04:20:00 +00:00
|
|
|
"test_submit_job"
|
|
|
|
"test_max_instances"
|
|
|
|
];
|
|
|
|
|
2022-01-12 08:39:34 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"apscheduler"
|
|
|
|
];
|
2021-03-06 20:01:03 +00:00
|
|
|
|
2017-05-01 08:52:32 +01:00
|
|
|
meta = with lib; {
|
2022-01-12 08:39:34 +00:00
|
|
|
description = "Library that lets you schedule your Python code to be executed";
|
2021-03-06 23:36:39 +00:00
|
|
|
homepage = "https://github.com/agronholm/apscheduler";
|
2017-05-01 08:52:32 +01:00
|
|
|
license = licenses.mit;
|
2021-09-24 13:03:54 +01:00
|
|
|
maintainers = with maintainers; [ ];
|
2017-05-01 08:52:32 +01:00
|
|
|
};
|
2020-04-01 02:11:51 +01:00
|
|
|
}
|