Files
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

79 lines
1.4 KiB
Nix

{
lib,
stdenv,
buildPythonPackage,
fetchFromGitHub,
gevent,
pytest-asyncio,
pytest-cov-stub,
pytest-tornado,
pytest8_3CheckHook,
pythonOlder,
pytz,
setuptools,
setuptools-scm,
tornado,
twisted,
tzlocal,
}:
buildPythonPackage rec {
pname = "apscheduler";
version = "3.11.0";
pyproject = true;
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "agronholm";
repo = "apscheduler";
tag = version;
hash = "sha256-tFEm9yXf8CqcipSYtM7JM6WQ5Qm0YtgWhZvZOBAzy+w=";
};
postPatch = ''
sed -i "/addopts/d" pyproject.toml
'';
build-system = [
setuptools
setuptools-scm
];
dependencies = [
tzlocal
];
nativeCheckInputs = [
gevent
pytest-asyncio
pytest-cov-stub
pytest-tornado
pytest8_3CheckHook
pytz
tornado
twisted
];
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.hostPlatform.isDarwin [
"test_submit_job"
"test_max_instances"
];
pythonImportsCheck = [ "apscheduler" ];
meta = with lib; {
description = "Library that lets you schedule your Python code to be executed";
homepage = "https://github.com/agronholm/apscheduler";
license = licenses.mit;
maintainers = [ ];
};
}