python3Packages.pure-python-adb: split off async requirements

main
Martin Weinelt 2 years ago
parent 83f634c4e4
commit 139ba48b97
No known key found for this signature in database
GPG Key ID: 87C1E9888F856759
  1. 28
      pkgs/development/python-modules/pure-python-adb/default.nix

@ -1,4 +1,10 @@
{ aiofiles, buildPythonPackage, fetchPypi, lib, pythonOlder }:
{ aiofiles
, buildPythonPackage
, fetchPypi
, lib
, pythonOlder
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "pure-python-adb";
@ -11,11 +17,21 @@ buildPythonPackage rec {
sha256 = "0kdr7w2fhgjpcf1k3l6an9im583iqkr6v8hb4q1zw30nh3bqkk0f";
};
propagatedBuildInputs = [ aiofiles ];
# Disable tests as they require docker, docker-compose and a dedicated
# android emulator
doCheck = false;
pythonImportsCheck = [ "ppadb.client" "ppadb.client_async" ];
passthru.extras-require = {
async = [
aiofiles
];
};
checkInputs = [
pytestCheckHook
]
++ passthru.extras-require.async;
pythonImportsCheck = [
"ppadb.client"
"ppadb.client_async"
];
meta = with lib; {
description = "Pure python implementation of the adb client";

Loading…
Cancel
Save