2021-02-19 19:06:45 +00:00
|
|
|
{ lib
|
|
|
|
, aiofiles
|
|
|
|
, buildPythonPackage
|
|
|
|
, cryptography
|
|
|
|
, fetchFromGitHub
|
|
|
|
, isPy3k
|
|
|
|
, libusb1
|
|
|
|
, mock
|
|
|
|
, pyasn1
|
2022-01-13 20:06:32 +00:00
|
|
|
, pythonAtLeast
|
2021-02-19 19:06:45 +00:00
|
|
|
, pycryptodome
|
|
|
|
, pytestCheckHook
|
|
|
|
, rsa
|
|
|
|
}:
|
2020-10-07 09:15:18 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "adb-shell";
|
2022-06-16 17:23:12 +00:00
|
|
|
version = "0.4.3";
|
2022-01-13 20:06:32 +00:00
|
|
|
format = "setuptools";
|
2020-10-07 09:15:18 +00:00
|
|
|
|
|
|
|
disabled = !isPy3k;
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "JeffLIrion";
|
|
|
|
repo = "adb_shell";
|
|
|
|
rev = "v${version}";
|
2022-06-16 17:23:12 +00:00
|
|
|
hash = "sha256-+RU3nyJpHq0r/9erEbjUILpwIPWq14HdOX7LkSxySs4=";
|
2020-10-07 09:15:18 +00:00
|
|
|
};
|
|
|
|
|
2021-02-19 19:06:45 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
cryptography
|
|
|
|
pyasn1
|
|
|
|
rsa
|
|
|
|
];
|
2020-10-07 09:15:18 +00:00
|
|
|
|
2022-06-16 17:23:12 +00:00
|
|
|
passthru.optional-dependencies = {
|
2022-04-15 01:41:22 +00:00
|
|
|
async = [
|
|
|
|
aiofiles
|
|
|
|
];
|
|
|
|
usb = [
|
|
|
|
libusb1
|
|
|
|
];
|
|
|
|
};
|
|
|
|
|
2021-02-19 19:06:45 +00:00
|
|
|
checkInputs = [
|
|
|
|
mock
|
|
|
|
pycryptodome
|
|
|
|
pytestCheckHook
|
2022-04-15 01:41:22 +00:00
|
|
|
]
|
2022-06-16 17:23:12 +00:00
|
|
|
++ passthru.optional-dependencies.async
|
|
|
|
++ passthru.optional-dependencies.usb;
|
2021-02-19 19:06:45 +00:00
|
|
|
|
2022-01-13 20:06:32 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"adb_shell"
|
|
|
|
];
|
2020-10-07 09:15:18 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
2021-02-19 19:06:45 +00:00
|
|
|
description = "Python implementation of ADB with shell and FileSync functionality";
|
2020-10-07 09:15:18 +00:00
|
|
|
homepage = "https://github.com/JeffLIrion/adb_shell";
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ jamiemagee ];
|
|
|
|
};
|
|
|
|
}
|