From e02cea2d69d548710d6412845b68520e7d053803 Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Mon, 17 Jan 2022 03:29:41 +0100 Subject: [PATCH] python3Packages.hyperion-py: fix pytest-asyncio compatibility --- pkgs/development/python-modules/hyperion-py/default.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pkgs/development/python-modules/hyperion-py/default.nix b/pkgs/development/python-modules/hyperion-py/default.nix index c282be29c655..719efb92d1da 100644 --- a/pkgs/development/python-modules/hyperion-py/default.nix +++ b/pkgs/development/python-modules/hyperion-py/default.nix @@ -36,6 +36,11 @@ buildPythonPackage rec { pytestCheckHook ]; + pytestFlagsArray = [ + # pytest-asyncio 0.17.0 compat + "--asyncio-mode=auto" + ]; + postPatch = '' substituteInPlace pyproject.toml \ --replace " --timeout=9 --cov=hyperion" ""