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

This commit is contained in:
Martin Weinelt 2022-04-07 05:22:48 +02:00
parent 83f634c4e4
commit 139ba48b97
No known key found for this signature in database
GPG key ID: 87C1E9888F856759

View file

@ -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";