depot/third_party/nixpkgs/pkgs/development/python-modules/APScheduler/default.nix
Default email 14910f5943 Project import generated by Copybara.
GitOrigin-RevId: 5aaed40d22f0d9376330b6fa413223435ad6fee5
2022-01-13 15:06:32 -05:00

78 lines
1.3 KiB
Nix

{ lib
, stdenv
, buildPythonPackage
, fetchPypi
, gevent
, pytest-asyncio
, pytest-tornado
, pytestCheckHook
, pythonOlder
, pytz
, setuptools
, setuptools-scm
, six
, tornado
, twisted
, tzlocal
}:
buildPythonPackage rec {
pname = "apscheduler";
version = "3.8.1";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchPypi {
pname = "APScheduler";
inherit version;
hash = "sha256-XPNE68+9qkiuF4wCnAVc7HvHpKR8IeMV5NHwi9NfI1U=";
};
buildInputs = [
setuptools-scm
];
propagatedBuildInputs = [
pytz
setuptools
six
tzlocal
];
checkInputs = [
gevent
pytest-asyncio
pytest-tornado
pytestCheckHook
tornado
twisted
];
postPatch = ''
substituteInPlace setup.cfg \
--replace " --cov --tb=short" ""
'';
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"
];
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 = with maintainers; [ ];
};
}