1{ aiofiles
2, buildPythonPackage
3, fetchPypi
4, lib
5, pythonOlder
6, pytestCheckHook
7}:
8
9buildPythonPackage rec {
10 pname = "pure-python-adb";
11 version = "0.3.0.dev0";
12
13 disabled = pythonOlder "3.6";
14
15 src = fetchPypi {
16 inherit pname version;
17 sha256 = "0kdr7w2fhgjpcf1k3l6an9im583iqkr6v8hb4q1zw30nh3bqkk0f";
18 };
19
20 passthru.optional-dependencies = {
21 async = [
22 aiofiles
23 ];
24 };
25
26 doCheck = pythonOlder "3.10"; # all tests result in RuntimeError on 3.10
27
28 nativeCheckInputs = [
29 pytestCheckHook
30 ]
31 ++ passthru.optional-dependencies.async;
32
33 pythonImportsCheck = [
34 "ppadb.client"
35 ] ++ lib.optionals doCheck [
36 "ppadb.client_async"
37 ];
38
39 meta = with lib; {
40 description = "Pure python implementation of the adb client";
41 homepage = "https://github.com/Swind/pure-python-adb";
42 license = licenses.mit;
43 maintainers = with maintainers; [ jamiemagee ];
44 };
45}