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
|
2021-03-06 23:36:39 +00:00
|
|
|
, setuptools-scm
|
|
|
|
, pytestCheckHook
|
2021-03-14 04:20:00 +00:00
|
|
|
, pytest-asyncio
|
|
|
|
, pytest-tornado
|
2017-05-01 08:52:32 +01:00
|
|
|
, pytestcov
|
|
|
|
, sqlalchemy
|
|
|
|
, tornado
|
|
|
|
, twisted
|
|
|
|
, mock
|
|
|
|
, gevent
|
|
|
|
, six
|
|
|
|
, pytz
|
|
|
|
, tzlocal
|
|
|
|
, funcsigs
|
2021-03-06 20:01:03 +00:00
|
|
|
, setuptools
|
2021-03-20 15:19:01 +00:00
|
|
|
, pythonOlder
|
2017-05-01 08:52:32 +01:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "APScheduler";
|
2021-01-21 08:02:35 +00:00
|
|
|
version = "3.7.0";
|
2021-03-20 15:19:01 +00:00
|
|
|
disabled = pythonOlder "3.7";
|
2017-05-01 08:52:32 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-01-21 08:02:35 +00:00
|
|
|
sha256 = "1cab7f2521e107d07127b042155b632b7a1cd5e02c34be5a28ff62f77c900c6a";
|
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
|
|
|
];
|
|
|
|
|
|
|
|
checkInputs = [
|
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
|
|
|
pytestcov
|
|
|
|
sqlalchemy
|
|
|
|
tornado
|
|
|
|
twisted
|
|
|
|
mock
|
|
|
|
gevent
|
2021-03-20 15:19:01 +00:00
|
|
|
];
|
2017-05-01 08:52:32 +01:00
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
six
|
|
|
|
pytz
|
|
|
|
tzlocal
|
|
|
|
funcsigs
|
2021-03-06 20:01:03 +00:00
|
|
|
setuptools
|
2021-03-20 15:19:01 +00:00
|
|
|
];
|
2017-05-01 08:52:32 +01:00
|
|
|
|
2021-03-14 04:20:00 +00:00
|
|
|
disabledTests = lib.optionals stdenv.isDarwin [
|
|
|
|
"test_submit_job"
|
|
|
|
"test_max_instances"
|
|
|
|
];
|
|
|
|
|
2021-03-06 20:01:03 +00:00
|
|
|
pythonImportsCheck = [ "apscheduler" ];
|
|
|
|
|
2017-05-01 08:52:32 +01:00
|
|
|
meta = with lib; {
|
|
|
|
description = "A Python 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;
|
|
|
|
};
|
2020-04-01 02:11:51 +01:00
|
|
|
}
|