dae973cb59
GitOrigin-RevId: c90c4025bb6e0c4eaf438128a3b2640314b1c58d
52 lines
1 KiB
Nix
52 lines
1 KiB
Nix
{ lib
|
|
, buildPythonPackage
|
|
, docopt
|
|
, fetchFromGitHub
|
|
, jdk11
|
|
, psutil
|
|
, pythonOlder
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "adb-enhanced";
|
|
version = "2.5.16";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "ashishb";
|
|
repo = pname;
|
|
rev = "refs/tags/${version}";
|
|
hash = "sha256-+CMXKg3LLxEXGcFQ9zSqy/1HPZS9MsQ1fZxClJ0Vrnw=";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
psutil
|
|
docopt
|
|
];
|
|
|
|
postPatch = ''
|
|
substituteInPlace adbe/adb_enhanced.py \
|
|
--replace "cmd = 'java" "cmd = '${jdk11}/bin/java"
|
|
'';
|
|
|
|
# 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";
|
|
sourceProvenance = with sourceTypes; [
|
|
fromSource
|
|
binaryBytecode
|
|
];
|
|
license = licenses.asl20;
|
|
maintainers = with maintainers; [ vtuan10 ];
|
|
mainProgram = "adbe";
|
|
};
|
|
}
|