12 buildPythonPackage rec {
17 disabled = pythonOlder "3.8";
19 src = fetchFromGitHub {
22 rev = "refs/tags/v${version}";
23 hash = "sha256-/+PTHLrZyf2UuYkLWkNgzf9amFywDJnP2OKVWvARcAA=";
27 substituteInPlace pytest.ini \
28 --replace "--cov=aiojobs/ --cov=tests/ --cov-report term" ""
35 propagatedBuildInputs = lib.optionals (pythonOlder "3.11") [
39 passthru.optional-dependencies = {
48 ] ++ lib.flatten (builtins.attrValues passthru.optional-dependencies);
50 pythonImportsCheck = [
55 # RuntimeWarning: coroutine 'Scheduler._wait_failed' was never awaited
56 "test_scheduler_must_be_created_within_running_loop"
59 __darwinAllowLocalNetworking = true;
62 description = "Jobs scheduler for managing background task (asyncio)";
63 homepage = "https://github.com/aio-libs/aiojobs";
64 changelog = "https://github.com/aio-libs/aiojobs/blob/v${version}/CHANGES.rst";
65 license = licenses.asl20;
66 maintainers = with maintainers; [ cmcdragonkai ];