python3Packages.adb-enhanced: 2.5.11 -> 2.5.12

This commit is contained in:
Fabian Affolter 2021-10-20 13:23:03 +02:00 committed by Jonathan Ringer
parent 3717222ada
commit 1f85a06f89

View file

@ -1,8 +1,15 @@
{ lib, jdk11, fetchFromGitHub, buildPythonPackage, docopt, psutil, pythonOlder }:
{ lib
, buildPythonPackage
, docopt
, fetchFromGitHub
, jdk11
, psutil
, pythonOlder
}:
buildPythonPackage rec {
pname = "adb-enhanced";
version = "2.5.11";
version = "2.5.12";
disabled = pythonOlder "3.4";
@ -10,20 +17,25 @@ buildPythonPackage rec {
owner = "ashishb";
repo = pname;
rev = version;
sha256 = "sha256-jb5O7Qxk2xAX5sax6nqywcGBJao5Xfff9s1yvdfvDCs=";
sha256 = "sha256-OZSLk5qXX6rEclo6JC8o/7Mz0Y2sJqUsLhnrVK4gkVI=";
};
propagatedBuildInputs = [
psutil
docopt
];
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
# Disable tests because they require a dedicated Android emulator
doCheck = false;
pythonImportsCheck = [ "adbe" ];
pythonImportsCheck = [
"adbe"
];
meta = with lib; {
description = "Tool for Android testing and development";