2022-04-15 01:41:22 +00:00
|
|
|
{ aiofiles
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, lib
|
|
|
|
, pythonOlder
|
|
|
|
, pytestCheckHook
|
|
|
|
}:
|
2020-10-07 09:15:18 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pure-python-adb";
|
|
|
|
version = "0.3.0.dev0";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.6";
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
|
|
|
sha256 = "0kdr7w2fhgjpcf1k3l6an9im583iqkr6v8hb4q1zw30nh3bqkk0f";
|
|
|
|
};
|
|
|
|
|
2022-04-15 01:41:22 +00:00
|
|
|
passthru.extras-require = {
|
|
|
|
async = [
|
|
|
|
aiofiles
|
|
|
|
];
|
|
|
|
};
|
|
|
|
|
|
|
|
doCheck = pythonOlder "3.10"; # all tests result in RuntimeError on 3.10
|
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
pytestCheckHook
|
|
|
|
]
|
|
|
|
++ passthru.extras-require.async;
|
|
|
|
|
|
|
|
pythonImportsCheck = [
|
|
|
|
"ppadb.client"
|
|
|
|
] ++ lib.optionals doCheck [
|
|
|
|
"ppadb.client_async"
|
|
|
|
];
|
2020-10-07 09:15:18 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Pure python implementation of the adb client";
|
|
|
|
homepage = "https://github.com/Swind/pure-python-adb";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ jamiemagee ];
|
|
|
|
};
|
|
|
|
}
|