2021-02-19 10:55:45 +01:00
|
|
|
{ lib
|
|
|
|
, aiofiles
|
|
|
|
, buildPythonPackage
|
|
|
|
, cryptography
|
|
|
|
, fetchFromGitHub
|
|
|
|
, isPy3k
|
|
|
|
, libusb1
|
|
|
|
, mock
|
|
|
|
, pyasn1
|
|
|
|
, pycryptodome
|
|
|
|
, pytestCheckHook
|
|
|
|
, rsa
|
|
|
|
}:
|
2020-09-24 10:32:45 +02:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "adb-shell";
|
2021-07-20 22:19:11 +02:00
|
|
|
version = "0.4.0";
|
2020-09-24 10:32:45 +02:00
|
|
|
|
|
|
|
disabled = !isPy3k;
|
|
|
|
|
|
|
|
# pypi does not contain tests, using github sources instead
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "JeffLIrion";
|
|
|
|
repo = "adb_shell";
|
|
|
|
rev = "v${version}";
|
2021-07-20 22:19:11 +02:00
|
|
|
sha256 = "1dzpgpvjvss4mk2kp1s9g1gg0d008pbmfdsi9b98q9fax9syk725";
|
2020-09-24 10:32:45 +02:00
|
|
|
};
|
|
|
|
|
2021-02-19 10:55:45 +01:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
aiofiles
|
|
|
|
cryptography
|
|
|
|
libusb1
|
|
|
|
pyasn1
|
|
|
|
rsa
|
|
|
|
];
|
2020-09-24 10:32:45 +02:00
|
|
|
|
2021-02-19 10:55:45 +01:00
|
|
|
checkInputs = [
|
|
|
|
mock
|
|
|
|
pycryptodome
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "adb_shell" ];
|
2020-09-24 10:32:45 +02:00
|
|
|
|
|
|
|
meta = with lib; {
|
2021-02-19 10:55:45 +01:00
|
|
|
description = "Python implementation of ADB with shell and FileSync functionality";
|
2020-09-24 10:32:45 +02:00
|
|
|
homepage = "https://github.com/JeffLIrion/adb_shell";
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ jamiemagee ];
|
|
|
|
};
|
|
|
|
}
|