about summary refs log tree commit diff
path: root/pkgs/development/python-modules/adb-shell
diff options
context:
space:
mode:
authorMartin Weinelt <hexa@darmstadt.ccc.de>2022-04-07 05:15:13 +0200
committerMartin Weinelt <hexa@darmstadt.ccc.de>2022-04-12 04:04:08 +0200
commitaa90072fc9ed83aa646a947ef3ca741beb11f702 (patch)
treef51b0341fb4b4ca3b3fa11c24517d9da1482314b /pkgs/development/python-modules/adb-shell
parente365a5bc06b466245b5d206f4e7ad6ff423de2c7 (diff)
python3Packages.adb-shell: split off extra requires
Diffstat (limited to 'pkgs/development/python-modules/adb-shell')
-rw-r--r--pkgs/development/python-modules/adb-shell/default.nix15
1 files changed, 12 insertions, 3 deletions
diff --git a/pkgs/development/python-modules/adb-shell/default.nix b/pkgs/development/python-modules/adb-shell/default.nix
index 907cf155ea102..792729da1fac9 100644
--- a/pkgs/development/python-modules/adb-shell/default.nix
+++ b/pkgs/development/python-modules/adb-shell/default.nix
@@ -28,18 +28,27 @@ buildPythonPackage rec {
   };
 
   propagatedBuildInputs = [
-    aiofiles
     cryptography
-    libusb1
     pyasn1
     rsa
   ];
 
+  passthru.extras-require = {
+    async = [
+      aiofiles
+    ];
+    usb = [
+      libusb1
+    ];
+  };
+
   checkInputs = [
     mock
     pycryptodome
     pytestCheckHook
-  ];
+  ]
+  ++ passthru.extras-require.async
+  ++ passthru.extras-require.usb;
 
   disabledTests = lib.optionals (pythonAtLeast "3.10") [
     # Tests are failing with Python 3.10