2021-02-20 22:24:59 +00:00
|
|
|
{ lib, jdk11, fetchFromGitHub, buildPythonPackage, docopt, psutil, pythonOlder }:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "adb-enhanced";
|
2021-03-05 07:41:49 +00:00
|
|
|
version = "2.5.10";
|
2021-02-20 22:24:59 +00:00
|
|
|
|
|
|
|
disabled = pythonOlder "3.4";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "ashishb";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2021-03-05 07:41:49 +00:00
|
|
|
sha256 = "sha256-JMbcOk9Yr4WbfVUMKe5zZZWvvjKwhpPMdBt9d7xE6ek=";
|
2021-02-20 22:24:59 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|