Merge pull request #139321 from fabaff/test-apscheduler

python3Packages.APScheduler: fix build
This commit is contained in:
Fabian Affolter 2021-09-24 15:38:17 +02:00 committed by GitHub
commit f725095581
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -6,7 +6,6 @@
, pytestCheckHook
, pytest-asyncio
, pytest-tornado
, pytest-cov
, sqlalchemy
, tornado
, twisted
@ -23,6 +22,7 @@
buildPythonPackage rec {
pname = "APScheduler";
version = "3.8.0";
disabled = pythonOlder "3.7";
src = fetchPypi {
@ -38,7 +38,6 @@ buildPythonPackage rec {
pytest-asyncio
pytest-tornado
pytestCheckHook
pytest-cov
sqlalchemy
tornado
twisted
@ -54,7 +53,14 @@ buildPythonPackage rec {
setuptools
];
disabledTests = lib.optionals stdenv.isDarwin [
postPatch = ''
substituteInPlace setup.cfg \
--replace " --cov --tb=short" ""
'';
disabledTests = [
"test_broken_pool"
] ++ lib.optionals stdenv.isDarwin [
"test_submit_job"
"test_max_instances"
];
@ -65,5 +71,6 @@ buildPythonPackage rec {
description = "A Python library that lets you schedule your Python code to be executed";
homepage = "https://github.com/agronholm/apscheduler";
license = licenses.mit;
maintainers = with maintainers; [ ];
};
}