python38Packages.APScheduler: fix build on darwin

This commit is contained in:
Mario Rodas 2021-03-14 04:20:00 +00:00
parent 623851e197
commit c75c92f536

View File

@ -1,8 +1,11 @@
{ lib { lib
, stdenv
, buildPythonPackage , buildPythonPackage
, fetchPypi , fetchPypi
, setuptools-scm , setuptools-scm
, pytestCheckHook , pytestCheckHook
, pytest-asyncio
, pytest-tornado
, pytestcov , pytestcov
, sqlalchemy , sqlalchemy
, tornado , tornado
@ -33,15 +36,16 @@ buildPythonPackage rec {
]; ];
checkInputs = [ checkInputs = [
pytest-asyncio
pytest-tornado
pytestCheckHook pytestCheckHook
pytestcov pytestcov
sqlalchemy sqlalchemy
tornado tornado
twisted twisted
mock mock
trollius
gevent gevent
]; ] ++ lib.optionals (!isPy3k) [ trollius ];
propagatedBuildInputs = [ propagatedBuildInputs = [
six six
@ -51,6 +55,11 @@ buildPythonPackage rec {
setuptools setuptools
] ++ lib.optional (!isPy3k) futures; ] ++ lib.optional (!isPy3k) futures;
disabledTests = lib.optionals stdenv.isDarwin [
"test_submit_job"
"test_max_instances"
];
pythonImportsCheck = [ "apscheduler" ]; pythonImportsCheck = [ "apscheduler" ];
meta = with lib; { meta = with lib; {