1{ lib 2, aiofiles 3, buildPythonPackage 4, cryptography 5, fetchFromGitHub 6, isPy3k 7, libusb1 8, mock 9, pyasn1 10, pycryptodome 11, pytestCheckHook 12, rsa 13}: 14 15buildPythonPackage rec { 16 pname = "adb-shell"; 17 version = "0.4.2"; 18 19 disabled = !isPy3k; 20 21 # pypi does not contain tests, using github sources instead 22 src = fetchFromGitHub { 23 owner = "JeffLIrion"; 24 repo = "adb_shell"; 25 rev = "v${version}"; 26 sha256 = "sha256-8tclSjmLlTAIeq6t7YPGtJwvSwtlzQ7sRAQatcQRzeY="; 27 }; 28 29 propagatedBuildInputs = [ 30 aiofiles 31 cryptography 32 libusb1 33 pyasn1 34 rsa 35 ]; 36 37 checkInputs = [ 38 mock 39 pycryptodome 40 pytestCheckHook 41 ]; 42 43 pythonImportsCheck = [ "adb_shell" ]; 44 45 meta = with lib; { 46 description = "Python implementation of ADB with shell and FileSync functionality"; 47 homepage = "https://github.com/JeffLIrion/adb_shell"; 48 license = licenses.asl20; 49 maintainers = with maintainers; [ jamiemagee ]; 50 }; 51}