blob: bf0e1b8a729851dc2d0e37a21987f2492fb9daea (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
|
{
lib,
buildPythonPackage,
docopt,
fetchFromGitHub,
fetchpatch,
setuptools,
jdk11,
psutil,
}:
buildPythonPackage (finalAttrs: {
pname = "adb-enhanced";
version = "2.8.0";
pyproject = true;
src = fetchFromGitHub {
owner = "ashishb";
repo = "adb-enhanced";
tag = finalAttrs.version;
hash = "sha256-YuQgz3WeN50hg/IgdoNV61St9gpu6lcgFfKCfI/ENl0=";
};
patches = [
# psutil==7.2.1 -> psutil==7.2.2
(fetchpatch {
url = "https://github.com/ashishb/adb-enhanced/pull/337.patch";
hash = "sha256-BRpdgLS6CNkmyj+OwnIaqfkmz1jzZg/qtoiN32jUIog=";
})
];
build-system = [ setuptools ];
dependencies = [
psutil
docopt
];
postPatch = ''
substituteInPlace adbe/adb_enhanced.py \
--replace-fail "f\"java" "f\"${lib.getExe jdk11}"
'';
# 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";
};
})
|