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