From e535aac3aff03e58d9bec9ddd7e44b3db696ac3a Mon Sep 17 00:00:00 2001 From: Van Tuan Vo Date: Sat, 20 Feb 2021 23:23:30 +0100 Subject: [PATCH 1/2] maintainers: add vtuan10 --- maintainers/maintainer-list.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/maintainers/maintainer-list.nix b/maintainers/maintainer-list.nix index 3bd3ed9bcb8c..ff044fa2ae45 100644 --- a/maintainers/maintainer-list.nix +++ b/maintainers/maintainer-list.nix @@ -9994,6 +9994,12 @@ githubId = 7677567; name = "Victor SENE"; }; + vtuan10 = { + email = "mail@tuan-vo.de"; + github = "vtuan10"; + githubId = 16415673; + name = "Van Tuan Vo"; + }; vyorkin = { email = "vasiliy.yorkin@gmail.com"; github = "vyorkin"; From 5590b2bacd48528bac09a70024c6bf749906156b Mon Sep 17 00:00:00 2001 From: Van Tuan Vo Date: Sat, 20 Feb 2021 23:24:59 +0100 Subject: [PATCH 2/2] adb-enhanced: init at 2.5.9 --- .../python-modules/adb-enhanced/default.nix | 34 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 ++ 2 files changed, 36 insertions(+) create mode 100644 pkgs/development/python-modules/adb-enhanced/default.nix diff --git a/pkgs/development/python-modules/adb-enhanced/default.nix b/pkgs/development/python-modules/adb-enhanced/default.nix new file mode 100644 index 000000000000..3b2ef678a1ed --- /dev/null +++ b/pkgs/development/python-modules/adb-enhanced/default.nix @@ -0,0 +1,34 @@ +{ lib, jdk11, fetchFromGitHub, buildPythonPackage, docopt, psutil, pythonOlder }: + +buildPythonPackage rec { + pname = "adb-enhanced"; + version = "2.5.9"; + + disabled = pythonOlder "3.4"; + + src = fetchFromGitHub { + owner = "ashishb"; + repo = pname; + rev = version; + sha256 = "08fmb55p80fbx2cix6qv2gpw3fi5ic3q17vzvza9brfwx6z1g6dv"; + }; + + 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 + doCheck = false; + + pythonImportsCheck = [ "adbe" ]; + + meta = with lib; { + description = "Tool for Android testing and development"; + homepage = "https://github.com/ashishb/adb-enhanced"; + license = licenses.asl20; + maintainers = with maintainers; [ vtuan10 ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 8e9824fe9016..f520353aab29 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -168,6 +168,8 @@ in { adal = callPackage ../development/python-modules/adal { }; + adb-enhanced = callPackage ../development/python-modules/adb-enhanced { }; + adb-homeassistant = callPackage ../development/python-modules/adb-homeassistant { }; adb-shell = callPackage ../development/python-modules/adb-shell { };