mirror of
https://github.com/SebastianWendel/nixpkgs.git
synced 2024-11-06 10:16:44 +01:00
adb-enhanced: init at 2.5.9
This commit is contained in:
parent
e535aac3af
commit
5590b2bacd
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 ];
|
||||
};
|
||||
}
|
|
@ -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 { };
|
||||
|
|
Loading…
Reference in a new issue