Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 21.05 51 lines 941 B view raw
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.3.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-+K4fV8dlRpOZC5B7cvkfPRVK/2OBkH9qOmAnOwsm7kQ="; 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}