uboot: (firmwareOdroidC2/C4) don't invoke patch tool, use patches = [] instead
https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
This commit is contained in:
commit
56de2bcd43
30691 changed files with 3076956 additions and 0 deletions
47
pkgs/development/python-modules/adb-enhanced/default.nix
Normal file
47
pkgs/development/python-modules/adb-enhanced/default.nix
Normal file
|
|
@ -0,0 +1,47 @@
|
|||
{ lib
|
||||
, buildPythonPackage
|
||||
, docopt
|
||||
, fetchFromGitHub
|
||||
, jdk11
|
||||
, psutil
|
||||
, pythonOlder
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "adb-enhanced";
|
||||
version = "2.5.14";
|
||||
|
||||
disabled = pythonOlder "3.4";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "ashishb";
|
||||
repo = pname;
|
||||
rev = version;
|
||||
sha256 = "sha256-GaPOYBQEGI40MutjjY8exABqGge2p/buk9v+NcZ5oJs=";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [
|
||||
psutil
|
||||
docopt
|
||||
];
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace adbe/adb_enhanced.py \
|
||||
--replace "cmd = 'java" "cmd = '${jdk11}/bin/java"
|
||||
'';
|
||||
|
||||
# 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 ];
|
||||
mainProgram = "adbe";
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue