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
70
pkgs/development/python-modules/adb-shell/default.nix
Normal file
70
pkgs/development/python-modules/adb-shell/default.nix
Normal file
|
|
@ -0,0 +1,70 @@
|
|||
{ lib
|
||||
, aiofiles
|
||||
, buildPythonPackage
|
||||
, cryptography
|
||||
, fetchFromGitHub
|
||||
, isPy3k
|
||||
, libusb1
|
||||
, mock
|
||||
, pyasn1
|
||||
, pythonAtLeast
|
||||
, pycryptodome
|
||||
, pytestCheckHook
|
||||
, rsa
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "adb-shell";
|
||||
version = "0.4.3";
|
||||
format = "setuptools";
|
||||
|
||||
disabled = !isPy3k;
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "JeffLIrion";
|
||||
repo = "adb_shell";
|
||||
rev = "v${version}";
|
||||
hash = "sha256-+RU3nyJpHq0r/9erEbjUILpwIPWq14HdOX7LkSxySs4=";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [
|
||||
cryptography
|
||||
pyasn1
|
||||
rsa
|
||||
];
|
||||
|
||||
passthru.optional-dependencies = {
|
||||
async = [
|
||||
aiofiles
|
||||
];
|
||||
usb = [
|
||||
libusb1
|
||||
];
|
||||
};
|
||||
|
||||
checkInputs = [
|
||||
mock
|
||||
pycryptodome
|
||||
pytestCheckHook
|
||||
]
|
||||
++ passthru.optional-dependencies.async
|
||||
++ passthru.optional-dependencies.usb;
|
||||
|
||||
disabledTests = lib.optionals (pythonAtLeast "3.10") [
|
||||
# Tests are failing with Python 3.10
|
||||
# https://github.com/JeffLIrion/adb_shell/issues/198
|
||||
"TestAdbDeviceAsync"
|
||||
"TestTcpTransportAsync"
|
||||
];
|
||||
|
||||
pythonImportsCheck = [
|
||||
"adb_shell"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Python implementation of ADB with shell and FileSync functionality";
|
||||
homepage = "https://github.com/JeffLIrion/adb_shell";
|
||||
license = licenses.asl20;
|
||||
maintainers = with maintainers; [ jamiemagee ];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue