diff options
Diffstat (limited to 'pkgs/development/python-modules/apscheduler/default.nix')
-rw-r--r-- | pkgs/development/python-modules/apscheduler/default.nix | 68 |
1 files changed, 35 insertions, 33 deletions
diff --git a/pkgs/development/python-modules/apscheduler/default.nix b/pkgs/development/python-modules/apscheduler/default.nix index 771d9a3d0200e..6d038d28ec3e5 100644 --- a/pkgs/development/python-modules/apscheduler/default.nix +++ b/pkgs/development/python-modules/apscheduler/default.nix @@ -1,25 +1,26 @@ -{ lib -, stdenv -, buildPythonPackage -, fetchPypi -, gevent -, pytest-asyncio -, pytest-tornado -, pytestCheckHook -, pythonOlder -, pytz -, setuptools -, setuptools-scm -, six -, tornado -, twisted -, tzlocal +{ + 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.10.4"; - format = "setuptools"; + pyproject = true; disabled = pythonOlder "3.7"; @@ -29,11 +30,12 @@ buildPythonPackage rec { hash = "sha256-5t8HGyfZvomOSGvHlAp75QtK8unafAjwdEqW1L1M70o="; }; - buildInputs = [ + build-system = [ + setuptools setuptools-scm ]; - propagatedBuildInputs = [ + dependencies = [ pytz setuptools six @@ -51,23 +53,23 @@ buildPythonPackage rec { postPatch = '' substituteInPlace setup.cfg \ - --replace " --cov --tb=short" "" + --replace-fail " --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" - ]; + 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" - ]; + pythonImportsCheck = [ "apscheduler" ]; meta = with lib; { description = "Library that lets you schedule your Python code to be executed"; |