diff options
author | Fabian Affolter <mail@fabian-affolter.ch> | 2023-11-03 17:30:59 +0100 |
---|---|---|
committer | Fabian Affolter <mail@fabian-affolter.ch> | 2023-11-03 17:30:59 +0100 |
commit | f6fab894c3e763e863edae10f49b08458cd2a51f (patch) | |
tree | 05f3ab47abb7750031bfe7deed65829c441e3a56 | |
parent | 8f6ee3a6da7025c06936fdfbdfb7ba423c3ce5d5 (diff) |
python311Packages.aiojobs: disable failing test
-rw-r--r-- | pkgs/development/python-modules/aiojobs/default.nix | 26 |
1 files changed, 18 insertions, 8 deletions
diff --git a/pkgs/development/python-modules/aiojobs/default.nix b/pkgs/development/python-modules/aiojobs/default.nix index 094e7509ee3cc..1061b4f777a72 100644 --- a/pkgs/development/python-modules/aiojobs/default.nix +++ b/pkgs/development/python-modules/aiojobs/default.nix @@ -14,40 +14,50 @@ buildPythonPackage rec { version = "1.2.0"; format = "pyproject"; - disabled = pythonOlder "3.7"; + disabled = pythonOlder "3.8"; src = fetchFromGitHub { owner = "aio-libs"; - repo = pname; + repo = "aiojobs"; rev = "refs/tags/v${version}"; hash = "sha256-/+PTHLrZyf2UuYkLWkNgzf9amFywDJnP2OKVWvARcAA="; }; postPatch = '' - substituteInPlace setup.cfg \ - --replace "--cov=aiojobs/ --cov=tests/" "" + substituteInPlace pytest.ini \ + --replace "--cov=aiojobs/ --cov=tests/ --cov-report term" "" ''; nativeBuildInputs = [ setuptools ]; - propagatedBuildInputs = [ - aiohttp + propagatedBuildInputs = lib.optionals (pythonOlder "3.11") [ async-timeout ]; - __darwinAllowLocalNetworking = true; + passthru.optional-dependencies = { + aiohttp = [ + aiohttp + ]; + }; nativeCheckInputs = [ pytestCheckHook pytest-aiohttp - ]; + ] ++ lib.flatten (builtins.attrValues passthru.optional-dependencies); pythonImportsCheck = [ "aiojobs" ]; + disabledTests = [ + # RuntimeWarning: coroutine 'Scheduler._wait_failed' was never awaited + "test_scheduler_must_be_created_within_running_loop" + ]; + + __darwinAllowLocalNetworking = true; + meta = with lib; { description = "Jobs scheduler for managing background task (asyncio)"; homepage = "https://github.com/aio-libs/aiojobs"; |