2021-02-19 19:06:45 +00:00
|
|
|
{ lib
|
|
|
|
, aiofiles
|
|
|
|
, buildPythonPackage
|
|
|
|
, cryptography
|
|
|
|
, fetchFromGitHub
|
|
|
|
, isPy3k
|
|
|
|
, libusb1
|
|
|
|
, mock
|
|
|
|
, pyasn1
|
|
|
|
, pycryptodome
|
|
|
|
, pytestCheckHook
|
|
|
|
, rsa
|
|
|
|
}:
|
2020-10-07 09:15:18 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "adb-shell";
|
2021-05-28 09:39:13 +00:00
|
|
|
version = "0.3.3";
|
2020-10-07 09:15:18 +00:00
|
|
|
|
|
|
|
disabled = !isPy3k;
|
|
|
|
|
|
|
|
# pypi does not contain tests, using github sources instead
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "JeffLIrion";
|
|
|
|
repo = "adb_shell";
|
|
|
|
rev = "v${version}";
|
2021-05-28 09:39:13 +00:00
|
|
|
sha256 = "sha256-QVSPQk/QNnIjTgKGuIg0e58qCH91wn7e4TwgWSmOJEk=";
|
2020-10-07 09:15:18 +00:00
|
|
|
};
|
|
|
|
|
2021-02-19 19:06:45 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
aiofiles
|
|
|
|
cryptography
|
|
|
|
libusb1
|
|
|
|
pyasn1
|
|
|
|
rsa
|
|
|
|
];
|
2020-10-07 09:15:18 +00:00
|
|
|
|
2021-02-19 19:06:45 +00:00
|
|
|
checkInputs = [
|
|
|
|
mock
|
|
|
|
pycryptodome
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|