From 910fec81999595a8ff9fe2c842ba35ce25c7c556 Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Mon, 17 Jan 2022 13:53:21 +0100 Subject: [PATCH] python3Packages.atv: fix pytest-asyncio compatibility --- pkgs/development/python-modules/pyatv/default.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkgs/development/python-modules/pyatv/default.nix b/pkgs/development/python-modules/pyatv/default.nix index 9f1bd0081084..f2e4e2a19960 100644 --- a/pkgs/development/python-modules/pyatv/default.nix +++ b/pkgs/development/python-modules/pyatv/default.nix @@ -52,6 +52,10 @@ buildPythonPackage rec { pytestCheckHook ]; + pytestFlagsArray = [ + "--asyncio-mode=auto" + ]; + postPatch = '' substituteInPlace setup.py \ --replace "pytest-runner" ""