Something went wrong. Try again.
Nix Packages collection & NixOS github.com/NixOS/nixpkgs
Something went wrong. Try again.
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960{ lib, buildPythonPackage, docopt, fetchFromGitHub, fetchpatch, setuptools, jdk11, psutil,}:
buildPythonPackage (finalAttrs: { pname = "adb-enhanced"; version = "2.11.0"; pyproject = true;
src = fetchFromGitHub { owner = "ashishb"; repo = "adb-enhanced"; tag = finalAttrs.version; hash = "sha256-RKMF2Cn3wd5p3SdC22BO5AeINaq8u3+1t+3QkXYjbpE="; }; 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"; };})