Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 buildPythonPackage, 4 docopt, 5 fetchFromGitHub, 6 jdk11, 7 psutil, 8 pythonOlder, 9}: 10 11buildPythonPackage rec { 12 pname = "adb-enhanced"; 13 version = "2.5.24"; 14 format = "setuptools"; 15 16 disabled = pythonOlder "3.7"; 17 18 src = fetchFromGitHub { 19 owner = "ashishb"; 20 repo = pname; 21 rev = "refs/tags/${version}"; 22 hash = "sha256-0HxeL6VGM+HTiAxs3NFRcEFbmH9q+0/pJdGyF1hl4hU="; 23 }; 24 25 propagatedBuildInputs = [ 26 psutil 27 docopt 28 ]; 29 30 postPatch = '' 31 substituteInPlace adbe/adb_enhanced.py \ 32 --replace "cmd = 'java" "cmd = '${jdk11}/bin/java" 33 ''; 34 35 # Disable tests because they require a dedicated Android emulator 36 doCheck = false; 37 38 pythonImportsCheck = [ "adbe" ]; 39 40 meta = with lib; { 41 description = "Tool for Android testing and development"; 42 homepage = "https://github.com/ashishb/adb-enhanced"; 43 sourceProvenance = with sourceTypes; [ 44 fromSource 45 binaryBytecode 46 ]; 47 license = licenses.asl20; 48 maintainers = with maintainers; [ vtuan10 ]; 49 mainProgram = "adbe"; 50 }; 51}