nixpkgs/pkgs/development/python-modules/APScheduler/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

79 lines
1.3 KiB
Nix
Raw Normal View History

2017-05-01 08:52:32 +01:00
{ lib
, stdenv
2017-05-01 08:52:32 +01:00
, buildPythonPackage
, fetchPypi
, gevent
, pytest-asyncio
, pytest-tornado
, pytestCheckHook
, pythonOlder
, pytz
, setuptools
, setuptools-scm
, six
2017-05-01 08:52:32 +01:00
, tornado
, twisted
, tzlocal
}:
buildPythonPackage rec {
pname = "apscheduler";
version = "3.9.1";
format = "setuptools";
2021-09-24 13:03:54 +01:00
disabled = pythonOlder "3.7";
2017-05-01 08:52:32 +01:00
src = fetchPypi {
pname = "APScheduler";
inherit version;
hash = "sha256-ZeZXS2OVSY03HQRfKop+T31Qxq0h73MT0VscfPIN8eM=";
2017-05-01 08:52:32 +01:00
};
buildInputs = [
setuptools-scm
2017-05-01 08:52:32 +01:00
];
propagatedBuildInputs = [
pytz
setuptools
six
tzlocal
];
2017-05-01 08:52:32 +01:00
checkInputs = [
gevent
pytest-asyncio
pytest-tornado
pytestCheckHook
2017-05-01 08:52:32 +01:00
tornado
twisted
];
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"
# 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 [
"test_submit_job"
"test_max_instances"
];
pythonImportsCheck = [
"apscheduler"
];
2017-05-01 08:52:32 +01:00
meta = with lib; {
description = "Library that lets you schedule your Python code to be executed";
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
};
}