python3Packages.adb-enhanced: 2.5.11 -> 2.5.12
This commit is contained in:
parent
3717222ada
commit
1f85a06f89
1 changed files with 19 additions and 7 deletions
|
@ -1,8 +1,15 @@
|
||||||
{ lib, jdk11, fetchFromGitHub, buildPythonPackage, docopt, psutil, pythonOlder }:
|
{ lib
|
||||||
|
, buildPythonPackage
|
||||||
|
, docopt
|
||||||
|
, fetchFromGitHub
|
||||||
|
, jdk11
|
||||||
|
, psutil
|
||||||
|
, pythonOlder
|
||||||
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "adb-enhanced";
|
pname = "adb-enhanced";
|
||||||
version = "2.5.11";
|
version = "2.5.12";
|
||||||
|
|
||||||
disabled = pythonOlder "3.4";
|
disabled = pythonOlder "3.4";
|
||||||
|
|
||||||
|
@ -10,20 +17,25 @@ buildPythonPackage rec {
|
||||||
owner = "ashishb";
|
owner = "ashishb";
|
||||||
repo = pname;
|
repo = pname;
|
||||||
rev = version;
|
rev = version;
|
||||||
sha256 = "sha256-jb5O7Qxk2xAX5sax6nqywcGBJao5Xfff9s1yvdfvDCs=";
|
sha256 = "sha256-OZSLk5qXX6rEclo6JC8o/7Mz0Y2sJqUsLhnrVK4gkVI=";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
propagatedBuildInputs = [
|
||||||
|
psutil
|
||||||
|
docopt
|
||||||
|
];
|
||||||
|
|
||||||
postPatch = ''
|
postPatch = ''
|
||||||
substituteInPlace adbe/adb_enhanced.py \
|
substituteInPlace adbe/adb_enhanced.py \
|
||||||
--replace "cmd = 'java" "cmd = '${jdk11}/bin/java"
|
--replace "cmd = 'java" "cmd = '${jdk11}/bin/java"
|
||||||
'';
|
'';
|
||||||
|
|
||||||
propagatedBuildInputs = [ psutil docopt ];
|
# Disable tests because they require a dedicated Android emulator
|
||||||
|
|
||||||
# Disable tests because they require a dedicated android emulator
|
|
||||||
doCheck = false;
|
doCheck = false;
|
||||||
|
|
||||||
pythonImportsCheck = [ "adbe" ];
|
pythonImportsCheck = [
|
||||||
|
"adbe"
|
||||||
|
];
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "Tool for Android testing and development";
|
description = "Tool for Android testing and development";
|
||||||
|
|
Loading…
Reference in a new issue