Files
nixpkgs/pkgs/development/python-modules/adb-enhanced/default.nix
T
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

55 lines
1.1 KiB
Nix

{
lib,
buildPythonPackage,
docopt,
fetchFromGitHub,
setuptools,
jdk11,
psutil,
pythonOlder,
}:
buildPythonPackage rec {
pname = "adb-enhanced";
version = "2.5.24";
pyproject = true;
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "ashishb";
repo = "adb-enhanced";
tag = version;
hash = "sha256-0HxeL6VGM+HTiAxs3NFRcEFbmH9q+0/pJdGyF1hl4hU=";
};
build-system = [ setuptools ];
dependencies = [
psutil
docopt
];
postPatch = ''
substituteInPlace adbe/adb_enhanced.py \
--replace-fail "cmd = 'java" "cmd = '${jdk11}/bin/java"
'';
# 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";
};
}