From a45b1f58a30b5c8d4e8676da1087835b7e050f26 Mon Sep 17 00:00:00 2001 From: detroyejr Date: Fri, 12 Sep 2025 13:41:42 -0400 Subject: [PATCH] python3Packages.pytest-asyncio: add backports.asyncio.runner to dependencies for python 3.10 --- pkgs/development/python-modules/pytest-asyncio/default.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pkgs/development/python-modules/pytest-asyncio/default.nix b/pkgs/development/python-modules/pytest-asyncio/default.nix index 5ac0fdc37f87..a251f89fc5de 100644 --- a/pkgs/development/python-modules/pytest-asyncio/default.nix +++ b/pkgs/development/python-modules/pytest-asyncio/default.nix @@ -3,8 +3,10 @@ buildPythonPackage, callPackage, fetchFromGitHub, + pythonOlder, pytest, setuptools-scm, + backports-asyncio-runner, }: buildPythonPackage rec { @@ -27,6 +29,9 @@ buildPythonPackage rec { build-system = [ setuptools-scm ]; buildInputs = [ pytest ]; + dependencies = lib.optionals (pythonOlder "3.11") [ + backports-asyncio-runner + ]; postInstall = '' mkdir $testout