git.iko.soy/typeable/nixpkgs
on master help sign in
python3Packages.APScheduler: fix build
commitb27698e075a2d8a9670adf51e98917a35f11392e authorFabian Affolter <mail@fabian-affolter.ch> dateFri 24 Sep 2021, 14:03 (5 years ago) parent47a6bd2
1 file changed+10−3
pkgs/development/python-modules/APScheduler/default.nix+10−3
pkgs/development/python-modules/APScheduler/default.nix+10−3
@@ -6,7 +6,6 @@
66, pytestCheckHook
77, pytest-asyncio
88, pytest-tornado
9−, pytest-cov
109, sqlalchemy
1110, tornado
1211, twisted
@@ -23,6 +22,7 @@
2322buildPythonPackage rec {
2423 pname = "APScheduler";
2524 version = "3.8.0";
25+
2626 disabled = pythonOlder "3.7";
2727
2828 src = fetchPypi {
@@ -38,7 +38,6 @@ buildPythonPackage rec {
3838 pytest-asyncio
3939 pytest-tornado
4040 pytestCheckHook
41− pytest-cov
4241 sqlalchemy
4342 tornado
4443 twisted
@@ -54,7 +53,14 @@ buildPythonPackage rec {
5453 setuptools
5554 ];
5655
57− disabledTests = lib.optionals stdenv.isDarwin [
56+ postPatch = ''
57+ substituteInPlace setup.cfg \
58+ --replace " --cov --tb=short" ""
59+ '';
60+
61+ disabledTests = [
62+ "test_broken_pool"
63+ ] ++ lib.optionals stdenv.isDarwin [
5864 "test_submit_job"
5965 "test_max_instances"
6066 ];
@@ -65,5 +71,6 @@ buildPythonPackage rec {
6571 description = "A Python library that lets you schedule your Python code to be executed";
6672 homepage = "https://github.com/agronholm/apscheduler";
6773 license = licenses.mit;
74+ maintainers = with maintainers; [ ];
6875 };
6976}