a0511e596d
This commit was automatically generated using update-python-libraries.
52 lines
1.0 KiB
Nix
52 lines
1.0 KiB
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
docopt,
|
|
fetchFromGitHub,
|
|
setuptools,
|
|
jdk11,
|
|
psutil,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "adb-enhanced";
|
|
version = "2.8.0";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "ashishb";
|
|
repo = "adb-enhanced";
|
|
tag = version;
|
|
hash = "sha256-YuQgz3WeN50hg/IgdoNV61St9gpu6lcgFfKCfI/ENl0=";
|
|
};
|
|
|
|
build-system = [ setuptools ];
|
|
|
|
dependencies = [
|
|
psutil
|
|
docopt
|
|
];
|
|
|
|
postPatch = ''
|
|
substituteInPlace adbe/adb_enhanced.py \
|
|
--replace-fail "cmd = 'java" "cmd = '${jdk11}/bin/java"
|
|
'';
|
|
|
|
# Disable tests because they require a dedicated Android emulator
|
|
doCheck = false;
|
|
|
|
pythonImportsCheck = [ "adbe" ];
|
|
|
|
meta = {
|
|
description = "Tool for Android testing and development";
|
|
homepage = "https://github.com/ashishb/adb-enhanced";
|
|
sourceProvenance = with lib.sourceTypes; [
|
|
fromSource
|
|
binaryBytecode
|
|
];
|
|
license = lib.licenses.asl20;
|
|
maintainers = with lib.maintainers; [ vtuan10 ];
|
|
mainProgram = "adbe";
|
|
};
|
|
}
|