From 83f634c4e4a39352465ada45c4c90b4f4ee28dbe Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Thu, 7 Apr 2022 05:17:30 +0200 Subject: [PATCH] python3Packages.androidtv: split off extra requires --- .../development/python-modules/androidtv/default.nix | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/androidtv/default.nix b/pkgs/development/python-modules/androidtv/default.nix index 2ea8dc5bad5b..f116cef3dc75 100644 --- a/pkgs/development/python-modules/androidtv/default.nix +++ b/pkgs/development/python-modules/androidtv/default.nix @@ -25,14 +25,22 @@ buildPythonPackage rec { propagatedBuildInputs = [ adb-shell - aiofiles pure-python-adb ]; + passthru.extras-require = { + async = [ + aiofiles + ]; + inherit (adb-shell.extras-require) usb; + }; + checkInputs = [ mock pytestCheckHook - ]; + ] + ++ passthru.extras-require.async + ++ passthru.extras-require.usb; disabledTests = [ # Requires git but fails anyway