adb-enhanced: init at 2.5.9

This commit is contained in:
Van Tuan Vo 2021-02-20 23:24:59 +01:00
parent e535aac3af
commit 5590b2bacd
No known key found for this signature in database
GPG key ID: 7C96B1B77958A566
2 changed files with 36 additions and 0 deletions

View file

@ -0,0 +1,34 @@
{ lib, jdk11, fetchFromGitHub, buildPythonPackage, docopt, psutil, pythonOlder }:
buildPythonPackage rec {
pname = "adb-enhanced";
version = "2.5.9";
disabled = pythonOlder "3.4";
src = fetchFromGitHub {
owner = "ashishb";
repo = pname;
rev = version;
sha256 = "08fmb55p80fbx2cix6qv2gpw3fi5ic3q17vzvza9brfwx6z1g6dv";
};
postPatch = ''
substituteInPlace adbe/adb_enhanced.py \
--replace "cmd = 'java" "cmd = '${jdk11}/bin/java"
'';
propagatedBuildInputs = [ psutil docopt ];
# Disable tests because they require a dedicated android emulator
doCheck = false;
pythonImportsCheck = [ "adbe" ];
meta = with lib; {
description = "Tool for Android testing and development";
homepage = "https://github.com/ashishb/adb-enhanced";
license = licenses.asl20;
maintainers = with maintainers; [ vtuan10 ];
};
}

View file

@ -168,6 +168,8 @@ in {
adal = callPackage ../development/python-modules/adal { };
adb-enhanced = callPackage ../development/python-modules/adb-enhanced { };
adb-homeassistant = callPackage ../development/python-modules/adb-homeassistant { };
adb-shell = callPackage ../development/python-modules/adb-shell { };