Merge pull request #113839 from vtuan10/feature/adb-enhanced
This commit is contained in:
commit
7b4cf32752
3 changed files with 42 additions and 0 deletions
|
@ -10066,6 +10066,12 @@
|
|||
githubId = 7677567;
|
||||
name = "Victor SENE";
|
||||
};
|
||||
vtuan10 = {
|
||||
email = "mail@tuan-vo.de";
|
||||
github = "vtuan10";
|
||||
githubId = 16415673;
|
||||
name = "Van Tuan Vo";
|
||||
};
|
||||
vyorkin = {
|
||||
email = "vasiliy.yorkin@gmail.com";
|
||||
github = "vyorkin";
|
||||
|
|
34
pkgs/development/python-modules/adb-enhanced/default.nix
Normal file
34
pkgs/development/python-modules/adb-enhanced/default.nix
Normal 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 ];
|
||||
};
|
||||
}
|
|
@ -174,6 +174,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 { };
|
||||
|
|
Loading…
Reference in a new issue