From e365a5bc06b466245b5d206f4e7ad6ff423de2c7 Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Thu, 7 Apr 2022 05:11:15 +0200 Subject: [PATCH] python3Packages.pytradfri: split off async extra --- .../python-modules/pytradfri/default.nix | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/pkgs/development/python-modules/pytradfri/default.nix b/pkgs/development/python-modules/pytradfri/default.nix index e1c74b084613..70f9acd0380f 100644 --- a/pkgs/development/python-modules/pytradfri/default.nix +++ b/pkgs/development/python-modules/pytradfri/default.nix @@ -21,14 +21,17 @@ buildPythonPackage rec { hash = "sha256-12ol+2CnoPfkxmDGJJAkoafHGpQuWC4lh0N7lSvx2DE="; }; - propagatedBuildInputs = [ - aiocoap - dtlssocket - ]; + passthru.extras-require = { + async = [ + aiocoap + dtlssocket + ]; + }; checkInputs = [ pytestCheckHook - ]; + ] + ++ passthru.extras-require.async; pythonImportsCheck = [ "pytradfri"